Commit graph

108046 commits

Author SHA1 Message Date
Miss Islington (bot)
ff51e5ec26
bpo-42508: Remove bogus idlelib.pyshell.ModifiedInterpreter attribute (GH-23570) (GH-23571)
restart_subprocess is a method of self, the pyshell.InteractiveInterpreter instance. The latter does not have an interp attribute redundantly referring to itself. (The PyShell instance does have an interp attribute, referring to the InteractiveInterpreter instance.)
(cherry picked from commit e41bfd15dd)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-11-30 17:36:06 -05:00
Miss Islington (bot)
b2652f2d7e
bpo-42370: Check element before making mouse click in ttk tests (GH-23491)
(cherry picked from commit b0b428510c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-30 14:34:43 -08:00
Miss Islington (bot)
aab9390334
bpo-42501: Revise the usage note for Enums with the choices (GH-23563) (GH-23573) 2020-11-30 13:21:08 -08:00
Miss Islington (bot)
cf22aa3bc6
bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534) (GH-23569) 2020-11-30 09:07:26 -08:00
Miss Islington (bot)
03ae7e4518
bpo-42142: Try to fix timeouts in ttk tests (GH-23474)
Instead of using wait_visibility() which waits event <VisibilityNotify> in dead loop
use update() which should proceed all queued events.
(cherry picked from commit 6cc2c419f6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-30 00:43:59 -08:00
Irit Katriel
586bdd1add
[3.9] bpo-42474: test TracebackException comparison to non-equal instances (GH-23557) 2020-11-29 17:40:45 -08:00
Miss Islington (bot)
a83119d7be
bpo-42450: Minor updates to the itertools recipes (GH-23555) (GH-23562) 2020-11-29 11:14:10 -08:00
Miss Islington (bot)
fcf7391f59
bpo-42406: Fix whichmodule() with multiprocessing (GH-23403)
* bpo-42406: Fix whichmodule() with multiprocessing

Signed-off-by: Renato L. de F. Cunha <renatoc@br.ibm.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 86684319d3)

Co-authored-by: Renato Cunha <renatocunha@acm.org>
2020-11-29 10:47:31 -08:00
Miss Islington (bot)
cf47b3969e
bpo-39096: Improve description of 'e', 'f' and 'g' presentation types (GH-23537) (GH-23550)
* Improve description of 'e', 'f' and 'g' presentation types

* Drop the 'E' from Scientific 'E' notation; remove >= 0 qualifications

* Fix false statement that the alternate form is valid for Decimal

* Nitpick: remove the Harvard/Oxford comma

* Add note that the decimal point is also removed if no digits follow it, except in alternate form
(cherry picked from commit c642374b3e)

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>

Co-authored-by: Mark Dickinson <mdickinson@enthought.com>
2020-11-29 09:58:01 +00:00
Miss Islington (bot)
cfb2f79634
Fix dis markup (GH-23524)
(cherry picked from commit fa840cc81d)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-11-28 14:06:05 -08:00
Miss Islington (bot)
5d54dfadcf
Fix multiprocessing markup (GH-23525)
(cherry picked from commit 4b44472966)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2020-11-28 14:05:37 -08:00
Miss Islington (bot)
cc5eb935c7
bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538)
(cherry picked from commit d41ec65ab7)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-11-28 07:14:23 -08:00
Miss Islington (bot)
df6c8bcffe
bpo-34215: Clarify IncompleteReadError message when "expected" is None (GH-21925) (GH-23539)
Co-Authored-By: Tyler Bell <mrbell321@gmail.com>
(cherry picked from commit 8085f742f4)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2020-11-28 17:07:51 +02:00
Łukasz Langa
761c5a1ce4
Post 3.9.1rc1 2020-11-26 18:49:45 +01:00
Łukasz Langa
faf4206940 Python 3.9.1rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAl+9OYQACgkQsmmV4xAl
 BWgG0Q/9EjV0N/8c58WcVFhRaS1Nrl2s3BCBJwDubYK9zhPhd4zls0gS0e3DGa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QduIZf4CvqLBThAD0iEl5f4En2aFY
 RzURKi0c23Ks3Sze0SRgVVU4EgND6LV5xUr9GSpVzSDkN3g5p0Y3zG5Gv/HKqx6o
 5VlQEDBjhIKqZPCGsEgRljls5bFSfsVGTv+8CVRb/GJnnMMaEzJw9LE7dxiXPvsz
 5dJGsWp3qtfxTfKB5rCEvFOEh8Iu3UBO0WFuhQXAVQBlHd/ximo+AP8bhKGRwRGZ
 5x0/P5UvJhCYIvOpki1o+VEv1Aw8eIdNKltFcS6UvFgWvh7wnRZQYDcXZmWcQ7gQ
 IUzEK+jyIE40J+NQao/SO47rhQ5WzqzwegXamTNreyI2768PWvjwiUyu3GQBBjqn
 71r5v+fW0wvjMW4+0n7BFJzLY8XE8W44M7JzqMdg0LNHEokxClYVNB16ByieRzHm
 O5z03zI0Og==
 =j8M2
 -----END PGP SIGNATURE-----

Merge tag 'v3.9.1rc1' into 3.9

Python 3.9.1rc1
2020-11-26 18:49:05 +01:00
Miss Islington (bot)
dca61e770d
Typo: fix inverted sense of statement (GH-23288) (GH-23512) 2020-11-25 12:14:32 -08:00
Miss Islington (bot)
0aedcff34c
Add more tests to the descriptor howto guide (GH-23506) (GH-23510) 2020-11-25 02:16:32 -08:00
Miss Islington (bot)
9d2c2a8e3b
bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409)
Restore fix from 011525ee92.
(cherry picked from commit 4fedd7123e)

Co-authored-by: Julien Palard <julien@palard.fr>
2020-11-25 01:52:51 -08:00
Miss Islington (bot)
543724b972
Add doctests to the descriptor HowTo (GH-23500) (GH-23505) 2020-11-24 22:47:17 -08:00
Łukasz Langa
88db374422
Python 3.9.1rc1 2020-11-24 17:48:47 +01:00
Miss Islington (bot)
15d42d7ec6
bpo-42212: Check if generated files are up-to-date in GitHub Actions (GH-23042)
See https: //github.com/python/core-workflow/issues/380

Signed-off-by: Filipe Laíns <lains@archlinux.org>
(cherry picked from commit d20b7ed9c1)

Co-authored-by: Filipe Laíns <lains@archlinux.org>
2020-11-24 05:25:29 -08:00
Miss Islington (bot)
96d906b144
bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)
(cherry picked from commit c0c23ea72b)

Co-authored-by: Ned Deily <nad@python.org>
2020-11-24 01:34:16 -05:00
Miss Islington (bot)
3266991e72
bpo-41100: minor build installer fixes (GH-23480)
(cherry picked from commit 936533ca04)

Co-authored-by: Ned Deily <nad@python.org>
2020-11-23 16:26:31 -08:00
Miss Islington (bot)
b6416052f7
Typo (GH-23482) (#23483)
(cherry picked from commit 989af25616)

Co-authored-by: Jesús Cea <jcea@jcea.es>

Co-authored-by: Jesús Cea <jcea@jcea.es>
2020-11-24 01:11:13 +01:00
Miss Islington (bot)
2019e4ff98
Descriptor HowTo: Improve the fidelity of the member object simulation (GH-23475) (GH-23479) 2020-11-23 11:31:45 -08:00
Miss Islington (bot)
3e53301308
bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)
The function accepts now the representation of the default state as
empty sequence (as returned by Style.map()).
The structure of the result is now the same on all platform
and does not depend on the value of wantobjects.
(cherry picked from commit dd844a2916)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-23 00:51:37 -08:00
Ned Deily
5aa6c99da1
bpo-41100: Update Whatsnew and installer ReadME for 3.9.1 (GH-23472) 2020-11-22 23:43:04 -05:00
Miss Islington (bot)
85720596f1
bpo-42361: Use Tcl/Tk 8.6.10 when building the installer on recent macOS (GH-23293)
Building on older versions, and in particular macOS 10.9 still use
Tk 8.6.8 because of build problems on that version of macOS.
(cherry picked from commit 690a5fa3dd)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-11-22 10:22:21 -08:00
Miss Islington (bot)
41d1ebb33e
Doc: fix typo in typing.Type docs (GH-23460)
(cherry picked from commit 5ef53a88f3)

Co-authored-by: John Belmonte <john@neggie.net>
2020-11-22 07:16:48 -08:00
Ronald Oussoren
e8b1c038b1
[3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) (GH-23295)
* [3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855)

Co-authored-by:  Lawrence D’Anna <lawrence_danna@apple.com>

* Add support for macOS 11 and Apple Silicon (aka arm64)

  As a side effect of this work use the system copy of libffi on macOS, and remove the vendored copy

* Support building on recent versions of macOS while deploying to older versions

  This allows building installers on macOS 11 while still supporting macOS 10.9..
(cherry picked from commit 41761933c1)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>

* Back port of changes to _decimal to support arm64

* temp_dir is in test.support in 3.9
2020-11-22 11:18:40 +01:00
Miss Islington (bot)
0aab3522b2
bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) (GH-23455)
On macOS system provided libraries are in a shared library cache
and not at their usual location. This PR teaches distutils to search
in the SDK, even if there was no "-sysroot" argument in
the compiler flags.
(cherry picked from commit 404a719b51)

Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-11-22 01:35:36 -05:00
Miss Islington (bot)
4f87126969
bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)
Removing 'evaluate' makes it more consistent with other assertX entries.
(cherry picked from commit bd8c22e1fa)

Co-authored-by: Ram Rachum <ram@rachum.com>
2020-11-21 22:24:21 -08:00
Miss Islington (bot)
dd20643b14
bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)
(cherry picked from commit 453bc1da20)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-21 21:30:46 -08:00
Miss Islington (bot)
748d38bf52
[3.9] bpo-38443: Check that the specified universal architectures work (GH-22910) (GH-23451)
As [[bpo-38443]()]() says the error message from configure when specifying --enable-universalsdk with a set of architectures that is not supported by the compiler is not very helpful.   This PR explicitly checks if the compiler works and bails out if it doesn't.
(cherry picked from commit 0f20bd9042)


Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
2020-11-21 17:45:21 -08:00
Miss Islington (bot)
89d74d0acd
Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272) (GH-23450) 2020-11-21 12:20:26 -08:00
Miss Islington (bot)
3b5b1c82a3
Fix wrong availability for signal.SIGCHLD (GH-23285) (#23425)
I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows.
(cherry picked from commit 4c24b08cd3)

Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>

Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>
2020-11-21 13:22:46 +02:00
Miss Islington (bot)
d153eb8a1e
bpo-42412: Fix possible leaks and check arguments in PyType_FromModuleAndSpec() (GH-23410)
* There were leaks if Py_tp_bases is used more than once or if some call is
  failed before setting tp_bases.
* There was a crash if the bases argument or the Py_tp_bases slot is not a tuple.
* The documentation was not accurate.
(cherry picked from commit 1db76394ea)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2020-11-21 03:09:40 -08:00
Miss Islington (bot)
713b4bbd97
bpo-40550: Fix time-of-check/time-of-action issue in subprocess.Popen.send_signal. (GH-20010)
send_signal() now swallows the exception if the process it thought was still alive winds up not to exist anymore (always a plausible race condition despite the checks).

Co-authored-by: Gregory P. Smith <greg@krypto.org>
(cherry picked from commit 01a202ab6b)

Co-authored-by: Filipe Laíns <lains@archlinux.org>
2020-11-21 01:46:21 -08:00
Miss Islington (bot)
c1bbca5b00
bpo-40791: Make compare_digest more constant-time. (GH-20444)
* bpo-40791: Make compare_digest more constant-time.

The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization.

(This is change GH-1 from https://bugs.python.org/issue40791 .)
(cherry picked from commit 31729366e2)

Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
2020-11-21 01:18:41 -08:00
Miss Islington (bot)
ed0201805c
bpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421) (GH-23435)
(cherry picked from commit aa3a3521ce)
Co-authored-by: Quentin Hibon <qh.public@yahoo.com>
2020-11-20 23:34:55 -05:00
Miss Islington (bot)
c963da269d
bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)
(cherry picked from commit 6edf06b24a)

Co-authored-by: ArioA <ArioA@users.noreply.github.com>
2020-11-20 19:01:05 -08:00
Miss Islington (bot)
3763cc1dbd
bpo-28002: Roundtrip f-strings with ast.unparse better (GH-19612) (GH-23430)
By attempting to avoid backslashes in f-string expressions.
We also now proactively raise errors for some backslashes we can't
avoid while unparsing FormattedValues

Co-authored-by: hauntsaninja <>
Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com>
Co-authored-by: Batuhan Taskaya <isidentical@gmail.com>
(cherry picked from commit a993e901eb)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2020-11-21 00:46:49 +03:00
Miss Islington (bot)
f552f4b2d6
bpo-42360: Add advice to help avoid pickling issues. (GH-23305) (GH-23429) 2020-11-20 13:19:49 -08:00
Miss Islington (bot)
4dd2112a1d
bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)
Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None.
(cherry picked from commit 7ddbaa7a1b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-11-19 23:28:21 -08:00
Miss Islington (bot)
1051ca4d97
bpo-42345: Add whatsnew and versionchanged for typing.Literal in 3.9 (GH-23386)
* Whatsnew entry in 3.9 same as the one in 3.10.
* versionchanged for typing.Literal docs

Needs backport to 3.9.
(cherry picked from commit e1dc0db8c7)

Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
2020-11-19 09:59:10 -08:00
Miss Islington (bot)
2acd9d0c6c
bpo-42345: Fix hash implementation of typing.Literal (GH-23383)
Fix hash implementation of `typing.Literal`.

Update docs regarding `typing.Litaral` caching.

Base implementation was done in PR GH-23294.
(cherry picked from commit 1b54077ff6)

Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
2020-11-19 08:51:01 -08:00
Pablo Galindo
87c87b5bd6
[3.9] bpo-42381: Allow walrus in set literals and set comprehensions (GH-23332) (GH-23333)
Currently walruses are not allowerd in set literals and set comprehensions:

>>> {y := 4, 4**2, 3**3}
  File "<stdin>", line 1
    {y := 4, 4**2, 3**3}
       ^
SyntaxError: invalid syntax

but they should be allowed as well per PEP 572.
(cherry picked from commit b0aba1fcdc)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2020-11-18 23:44:30 +00:00
Miss Islington (bot)
36619e1bc4
[3.9] Minor grammar edits for the descriptor howto guide (GH-GH-23175) (GH-23176)
(cherry picked from commit 803187796f)


Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>

Automerge-Triggered-By: GH:JulienPalard
2020-11-18 15:23:49 -08:00
Miss Islington (bot)
f9fa920c30
[3.9] bpo-38320: Clarify that expectedFailure is satisfied by either failure or error of the test. (GH-22740) (GH-22783)
(cherry picked from commit fa8748271a)


Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
2020-11-18 14:37:37 -08:00
Miss Islington (bot)
37f6fe2c93
bpo-42336: Improve PCbuild batch files (GH-23275)
(cherry picked from commit 2156d964a1)

Co-authored-by: Steve Dower <steve.dower@python.org>
2020-11-18 09:45:54 -08:00