summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Python 3.9.1rc1v3.9.1rc1Łukasz Langa2020-11-2498-239/+1082
|
* bpo-42212: Check if generated files are up-to-date in GitHub Actions (GH-23042)Miss Islington (bot)2020-11-241-0/+28
| | | | | | | | See https: //github.com/python/core-workflow/issues/380 Signed-off-by: Filipe Laíns <lains@archlinux.org> (cherry picked from commit d20b7ed9c1fabac3fdebb7ec362fe4f022a54639) Co-authored-by: Filipe Laíns <lains@archlinux.org>
* bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486)Miss Islington (bot)2020-11-241-1/+4
| | | | | | (cherry picked from commit c0c23ea72b76b06b7db0d09415fa90bab8ded63a) Co-authored-by: Ned Deily <nad@python.org>
* bpo-41100: minor build installer fixes (GH-23480)Miss Islington (bot)2020-11-241-6/+12
| | | | | (cherry picked from commit 936533ca0415c40dc64ccb5f8857720f32b3fcb4) Co-authored-by: Ned Deily <nad@python.org>
* Typo (GH-23482) (#23483)Miss Islington (bot)2020-11-241-1/+1
| | | | | | | (cherry picked from commit 989af256161ea3728e1f787329e07e70e0901bc8) Co-authored-by: Jesús Cea <jcea@jcea.es> Co-authored-by: Jesús Cea <jcea@jcea.es>
* Descriptor HowTo: Improve the fidelity of the member object simulation ↵Miss Islington (bot)2020-11-231-11/+46
| | | | (GH-23475) (GH-23479)
* bpo-42328: Fix tkinter.ttk.Style.map(). (GH-23300)Miss Islington (bot)2020-11-234-28/+111
| | | | | | | | | 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 dd844a2916fb3a8f481ec7c732802c13c3375691) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41100: Update Whatsnew and installer ReadME for 3.9.1 (GH-23472)Ned Deily2020-11-232-3/+31
|
* bpo-42361: Use Tcl/Tk 8.6.10 when building the installer on recent macOS ↵Miss Islington (bot)2020-11-221-9/+32
| | | | | | | | | (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 690a5fa3ddc675a434730b057ddb5c33f44fd0b7) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* Doc: fix typo in typing.Type docs (GH-23460)Miss Islington (bot)2020-11-221-1/+1
| | | | | (cherry picked from commit 5ef53a88f3130cfcf9a9be3abd2ff2f997902647) Co-authored-by: John Belmonte <john@neggie.net>
* [3.9] bpo-41100: Support macOS 11 and Apple Silicon (GH-22855) (GH-23295)Ronald Oussoren2020-11-2228-346/+1592
| | | | | | | | | | | | | | | | | | | | * [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 41761933c1c30bb6003b65eef1ba23a83db4eae4) 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
* bpo-41116: Ensure system supplied libraries are found on macOS 11 (GH-23301) ↵Miss Islington (bot)2020-11-224-30/+38
| | | | | | | | | | | (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 404a719b5127602c1a948f8e189ab61cd3f147d8) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348)Miss Islington (bot)2020-11-221-2/+1
| | | | | | Removing 'evaluate' makes it more consistent with other assertX entries. (cherry picked from commit bd8c22e1fa8f8f6e31ee083a8b9321a2c324f02f) Co-authored-by: Ram Rachum <ram@rachum.com>
* bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447)Miss Islington (bot)2020-11-224-9/+11
| | | | | (cherry picked from commit 453bc1da2023d6cbe362637a2e0b06d0521f013c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [3.9] bpo-38443: Check that the specified universal architectures work ↵Miss Islington (bot)2020-11-223-0/+34
| | | | | | | | | (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 0f20bd9042c9b7fce20c3b9511cd0820b30094c3) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
* Clarify that Set._from_iterable is not required to be a classmethod. ↵Miss Islington (bot)2020-11-212-1/+57
| | | | (GH-23272) (GH-23450)
* Fix wrong availability for signal.SIGCHLD (GH-23285) (#23425)Miss Islington (bot)2020-11-211-1/+1
| | | | | | | | I believe this is a mistake. SIGCHLD is only available on Unix systems, not Windows. (cherry picked from commit 4c24b08cd3239b417a5f8c7ba2ba54c840d051e3) Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com> Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com>
* bpo-42412: Fix possible leaks and check arguments in ↵Miss Islington (bot)2020-11-212-7/+22
| | | | | | | | | | | 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 1db76394ea79030aa4ed5349c950f6c6da51450f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-40550: Fix time-of-check/time-of-action issue in ↵Miss Islington (bot)2020-11-213-1/+19
| | | | | | | | | | 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 01a202ab6b0ded546e47073db6498262086c52e9) Co-authored-by: Filipe Laíns <lains@archlinux.org>
* bpo-40791: Make compare_digest more constant-time. (GH-20444)Miss Islington (bot)2020-11-212-1/+2
| | | | | | | | | | * 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 31729366e2bc09632e78f3896dbce0ae64914f28) Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com>
* bpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421) (GH-23435)Miss Islington (bot)2020-11-211-2/+2
| | | | | (cherry picked from commit aa3a3521cef3998d4f9e7f7ff721163b6e3e5f39) Co-authored-by: Quentin Hibon <qh.public@yahoo.com>
* bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400)Miss Islington (bot)2020-11-211-1/+1
| | | | | (cherry picked from commit 6edf06b24a9335a2b0d44634a95e4f5ba0d586d9) Co-authored-by: ArioA <ArioA@users.noreply.github.com>
* bpo-28002: Roundtrip f-strings with ast.unparse better (GH-19612) (GH-23430)Miss Islington (bot)2020-11-202-37/+115
| | | | | | | | | | | | | | 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 a993e901ebe60c38d46ecb31f771d0b4a206828c) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
* bpo-42360: Add advice to help avoid pickling issues. (GH-23305) (GH-23429)Miss Islington (bot)2020-11-201-0/+3
|
* bpo-42416: Use inspect.getdoc for IDLE calltips (GH-23416)Miss Islington (bot)2020-11-204-6/+13
| | | | | | Inspect.getdoc(ob) sometimes gets docstrings when ob.__doc__ is None. (cherry picked from commit 7ddbaa7a1b3e61847ee99658be6a7268a049e302) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* bpo-42345: Add whatsnew and versionchanged for typing.Literal in 3.9 (GH-23386)Miss Islington (bot)2020-11-192-0/+35
| | | | | | | | | * 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 e1dc0db8c7cb8c4d7343e051ba85146b375bb8e0) Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com>
* bpo-42345: Fix hash implementation of typing.Literal (GH-23383)Miss Islington (bot)2020-11-193-4/+9
| | | | | | | | | | Fix hash implementation of `typing.Literal`. Update docs regarding `typing.Litaral` caching. Base implementation was done in PR GH-23294. (cherry picked from commit 1b54077ff6f5c1379e097e9f8e8648da9826d6ec) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* [3.9] bpo-42381: Allow walrus in set literals and set comprehensions ↵Pablo Galindo2020-11-184-1126/+1016
| | | | | | | | | | | | | | | | (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 b0aba1fcdc3da952698d99aec2334faa79a8b68c) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* [3.9] Minor grammar edits for the descriptor howto guide (GH-GH-23175) ↵Miss Islington (bot)2020-11-180-0/+0
| | | | | | | | | | (GH-23176) (cherry picked from commit 803187796f06bdc47ae74ce3d28c443e8cc2a27f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Automerge-Triggered-By: GH:JulienPalard
* [3.9] bpo-38320: Clarify that expectedFailure is satisfied by either failure ↵Miss Islington (bot)2020-11-181-5/+6
| | | | | | | | or error of the test. (GH-22740) (GH-22783) (cherry picked from commit fa8748271a61177e9bf609921fa464cc6990478b) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-42336: Improve PCbuild batch files (GH-23275)Miss Islington (bot)2020-11-189-24/+60
| | | | | (cherry picked from commit 2156d964a12285280c533af1c96eb273c58451e6) Co-authored-by: Steve Dower <steve.dower@python.org>
* [3.9] bpo-40998: Fix a refleak in create_filter() (GH-23365) (GH-23369)Christian Heimes2020-11-181-2/+5
| | | (cherry picked from commit d1e38d4023aa29e7ed64d4f8eb9c1e4a3c86a2e5)
* bpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367)Victor Stinner2020-11-183-26/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a race condition in "make regen-all" when make -jN option is used to run jobs in parallel. The clinic.py script now only use atomic write to write files. Moveover, generated files are now left unchanged if the content does not change, to not change the file modification time. The "make regen-all" command runs "make clinic" and "make regen-importlib" targets: * "make regen-importlib" builds object files (ex: Modules/_weakref.o) from source files (ex: Modules/_weakref.c) and clinic files (ex: Modules/clinic/_weakref.c.h) * "make clinic" always rewrites all clinic files (ex: Modules/clinic/_weakref.c.h) Since there is no dependency between "clinic" and "regen-importlib" Makefile targets, these two targets can be run in parallel. Moreover, half of clinic.py file writes are not atomic and so there is a race condition when "make regen-all" runs jobs in parallel using make -jN option (which can be passed in MAKEFLAGS environment variable). Fix clinic.py to make all file writes atomic: * Add write_file() function to ensure that all file writes are atomic: write into a temporary file and then use os.replace(). * Moreover, write_file() doesn't recreate or modify the file if the content does not change to avoid modifying the file modification file. * Update test_clinic to verify these assertions with a functional test. * Remove Clinic.force attribute which was no longer used, whereas Clinic.verify remains useful. (cherry picked from commit 8fba9523cf08029dc2e280d9f48fdd57ab178c9d)
* bpo-40998: Address compiler warnings found by ubsan (GH-20929)Miss Islington (bot)2020-11-184-5/+13
| | | | | | | | Signed-off-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran (cherry picked from commit 07f2adedf0940b06d136208ec386d69b7d2d5b43) Co-authored-by: Christian Heimes <christian@python.org>
* [3.9] bpo-41561: skip test_min_max_version_mismatch (GH-22308) (GH-23363)Miss Islington (bot)2020-11-182-0/+2
| | | | | | | | | | | skip test_min_max_version_mismatch when TLS 1.0 is not available Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit ce04e7105bc396c32667a22b928a712ba0778a3f) Co-authored-by: Christian Heimes <christian@python.org> Automerge-Triggered-By: GH:tiran
* [3.9] bpo-42332: Add weakref slot to types.GenericAlias (GH-23250) (GH-23309)kj2020-11-173-38/+59
| | | (cherry picked from commit 384b7a4bd988986bca227c7e85c32d766da74708)
* [3.9] bpo-39934: Account for control blocks in 'except' in compiler. ↵Irit Katriel2020-11-173-8/+23
| | | | | (GH-22395) (GH-23303) * bpo-39934: backport PR 22395 to 3.9
* bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347)Victor Stinner2020-11-174-30/+54
| | | | | | bpo-41686, bpo-41713: On Windows, the SIGINT event, _PyOS_SigintEvent(), is now created even if Python is configured to not install signal handlers (PyConfig.install_signal_handlers=0 or Py_InitializeEx(0)).
* [3.9] bpo-42345: Fix three issues with typing.Literal parameters (GH-23294) ↵Yurii Karabas2020-11-174-23/+105
| | | | | | | | | | | | | (GH-23335) Literal equality no longer depends on the order of arguments. Fix issue related to `typing.Literal` caching by adding `typed` parameter to `typing._tp_cache` function. Add deduplication of `typing.Literal` arguments. (cherry picked from commit f03d318ca42578e45405717aedd4ac26ea52aaed) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com>
* bpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980)Miss Islington (bot)2020-11-171-9/+18
| | | | | | | | | | Skip testing of pure Python PBKDF2 when one or more builtin hash module is not available. Otherwise the import of hashlib prints noise on stderr. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 975022b77b0024ea1548f19d5f91aba5ba1eed59) Co-authored-by: Christian Heimes <christian@python.org>
* [3.9] bpo-42120: Remove macro defining copysign to _copysign on Windows ↵Miss Islington (bot)2020-11-172-1/+1
| | | | | | | | (GH-23326) (GH-23331) (cherry picked from commit 9cc9e277254023c0ca08e1a9e379fd89475ca9c2) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-42374: Allow unparenthesized walrus in genexps (GH-23319) (GH-23329)Lysandros Nikolaou2020-11-164-7/+18
| | | | | This fixes a regression that was introduced by the new parser. (cherry picked from commit cb3e5ed0716114393696ec7201e51fe0595eab4f)
* bpo-42350: Fix Thread._reset_internal_locks() (GH-23268)Miss Islington (bot)2020-11-163-2/+38
| | | | | | | | Fix the threading.Thread class at fork: do nothing if the thread is already stopped (ex: fork called at Python exit). Previously, an error was logged in the child process. (cherry picked from commit 5909a494cd3ba43143b28bd439773ed85a485dfc) Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297)Miss Islington (bot)2020-11-162-3/+4
| | | | | | The University of Washington stopped hosting the IMAP documents. Link to a rescued copy on GitHub. (cherry picked from commit aa01011003bb855cd52abfd49f2443446590d913) Co-authored-by: Yash Shete <universeyash4@gmail.com>
* More updates to the descriptor howto guide (GH-23238) (GH-23308)Miss Islington (bot)2020-11-161-45/+62
|
* bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254)Miss Islington (bot)2020-11-161-0/+3
| | | | | (cherry picked from commit c3b9592244a9112d8af9610ff1c4e1e4cd4bfaca) Co-authored-by: Dominik1123 <15989985+Dominik1123@users.noreply.github.com>
* fix typo in ThreadedChildWatcher docs (GH-23277)Miss Islington (bot)2020-11-141-1/+1
| | | | | (cherry picked from commit 8836574a0f34ae81643c8af79bbb9062e332a4e3) Co-authored-by: Thomas Grainger <tagrain@gmail.com>
* bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271)Miss Islington (bot)2020-11-132-2/+3
| | | | | (cherry picked from commit 9b6934230c35e24d8582ea8c58456fa8eab72ae2) Co-authored-by: Steve Dower <steve.dower@python.org>
* bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) ↵Miss Islington (bot)2020-11-131-1/+3
| | | | | | | | | (GH-23270) (cherry picked from commit bbeb2d266d6fc1ca9778726d0397d9d6f7a946e3) Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com> Co-authored-by: Jürgen Gmach <juergen.gmach@googlemail.com>
* [3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) ↵Dong-hee Na2020-11-131-2/+2
| | | | | | | (GH-23265) (cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba) Co-authored-by: Dong-hee Na <donghee.na@python.org>