https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
1e5d33e Python 3.9.1 07 December 2020, 14:02:38 UTC
facca72 bpo-38843: Document behavior of default when the attribute is already set (GH-23653) (#23668) (cherry picked from commit 752cdf21eb2be0a26ea6a34a0de33a458459aead) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 07 December 2020, 05:17:09 UTC
2a9a883 bpo-42508: Keep IDLE running on macOS (GH-23577) (GH-23669) Remove obsolete workaround that prevented running files with shortcuts when using new universal2 installers built on macOS 11. Ignore buggy 2nd run_module_event call. (cherry picked from commit 57e511361047895231f5ee7abfdfbbc60e11d2db) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 07 December 2020, 03:48:48 UTC
8502d46 [3.9] bpo-42576: Clarify only debug builds are affected in news (GH-23663) (GH-23666) (cherry picked from commit 6a7fb9d31bce8590e30c44458d1fc1da4539743d) Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com> Automerge-Triggered-By: GH:gvanrossum 06 December 2020, 17:00:57 UTC
d5c029b bpo-42576: Raise TypeError when passing in keyword arguments to GenericAlias (GH-23656) Use `_PyArg_NoKeywords` instead of `_PyArg_NoKwnames` when checking the `kwds` tuple when creating `GenericAlias`. This fixes an interpreter crash when passing in keyword arguments to `GenericAlias`'s constructor. Needs backport to 3.9. Automerge-Triggered-By: GH:gvanrossum (cherry picked from commit 804d6893b801e8f30318afc38c20d4d0e6161db3) Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com> 05 December 2020, 16:24:38 UTC
b630ca7 [3.9] bpo-5054: CGIHTTPRequestHandler.run_cgi() HTTP_ACCEPT improperly parsed (GH-23638) (GH-23657) (cherry picked from commit da3d2abe6be9fcf18cac12ec5d7d9f1180d94b5e) Co-authored-by: Senthil Kumaran <senthil@uthcode.com> Automerge-Triggered-By: GH:orsenthil 05 December 2020, 15:26:37 UTC
06002b3 [3.9] bpo-41116: Fix setup.py test for macOS Tcl/Tk frameworks (GH-23649) (GH-23650) If no explicit macOS SDK was specified, setup.py should check for Tcl and TK frameworks in /Library/Frameworks; the previous commit inadvertently broke that test. (cherry picked from commit 29afab6c5f656f07ac85c9b2cf089631b2557a11) Co-authored-by: Ned Deily <nad@python.org> 05 December 2020, 04:26:59 UTC
d1f0741 bpo-17735: inspect.findsource now raises OSError when co_lineno is out of range (GH-23633) This can happen when a file was edited after it was imported. (cherry picked from commit 2e0760bb2edb595050aff82f236cd32b44d3dfb3) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> 04 December 2020, 22:41:58 UTC
40b92f1 [3.9] bpo-42482: remove reference to exc_traceback from TracebackException (GH-23531) (GH-23578) (cherry picked from commit 427613f005f0f412d12f0d775d2b609bae0ae1ad) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> 04 December 2020, 20:57:31 UTC
81ac030 bpo-42116: Fix inspect.getsource handling of trailing comments (GH-23630) (cherry picked from commit 6e1eec71f59c344fb23c7977061dc2c97b77d51b) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> 04 December 2020, 20:20:05 UTC
c7cf66d bpo-41473: Reenable test_gdb on gdb 9.2 and newer (GH-23637) https://bugzilla.redhat.com/show_bug.cgi?id=1866884 is fixed in gdb 10.1 (failed to reproduce on gdb-10.1-1.fc34.aarch64). (cherry picked from commit 066394018a8463643cc63d933493f0afa99d72cc) Co-authored-by: Victor Stinner <vstinner@python.org> 04 December 2020, 15:47:44 UTC
3689c25 bpo-42523: Fix supported versions in "Using Python on Windows" (GH-23603) (cherry picked from commit db68544122f5a0c7b80f69c0e643049efa6699c6) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 03 December 2020, 17:46:58 UTC
9f26833 bpo-42553: Fix test_asyncio.test_call_later() (GH-23627) Fix test_asyncio.test_call_later() race condition: don't measure asyncio performance in the call_later() unit test. The test failed randomly on the CI. (cherry picked from commit 7e5e13d113798117d5ef25c5ffdbd0eb39420f98) Co-authored-by: Victor Stinner <vstinner@python.org> 03 December 2020, 13:20:07 UTC
ae67db6 bpo-42328: Skip some tests with themes vista and xpnative on Windows 7 (GH-23612) (cherry picked from commit f3c3ea91a76526edff928c95b9c6767e077b7448) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 03 December 2020, 09:10:23 UTC
09a698b bpo-42504: fix for MACOSX_DEPLOYMENT_TARGET=11 (GH-23556) macOS releases numbering has changed as of macOS 11 Big Sur. Previously, major releases were of the form 10.x, 10.x+1, 10.x+2, etc; as of Big Sur, they are now x, x+1, etc, so, for example, 10.15, 10.15.1, ..., 10.15.7, 11, 11.0.1, 11.1, ..., 12, 12.1, etc. Allow Python to build with single-digit deployment target values. Patch provided by FX Coudert. (cherry picked from commit 5291639e611dc3f55a34666036f2c3424648ba50) Co-authored-by: FX Coudert <fxcoudert@gmail.com> 03 December 2020, 03:43:08 UTC
9b34f34 bpo-42521: Add note about 'Python -d' only working on debug builds (GH-23607) (cherry picked from commit 99b594404d364b363c184f48338d6ee81bee26dd) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 02 December 2020, 22:01:23 UTC
ed46143 bpo-37221: PyCode_New() didn't change in Python 3.8 (GH-23595) (cherry picked from commit 1867b462de427bcb8dfbcd256028410aea6ae929) Co-authored-by: Victor Stinner <vstinner@python.org> 01 December 2020, 15:54:54 UTC
0955f68 [3.9] build(deps): bump actions/upload-artifact from v2.2.0 to v2.2.1 (GH-23597) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from v2.2.0 to v2.2.1. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v2.2.0...726a6dcd0199f578459862705eed35cda05af50b) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit 8acd0e0d4976e91500149ee189f369f2b83b7537) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 01 December 2020, 15:30:03 UTC
d33f334 build(deps): bump actions/cache from v2.1.2 to v2.1.3 (23582) Bumps [actions/cache](https://github.com/actions/cache) from v2.1.2 to v2.1.3. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2.1.2...0781355a23dac32fd3bac414512f4b903437991a) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (cherry picked from commit a43fea88577c460eed7cc92a37b5fce787d6aab1) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 01 December 2020, 15:24:20 UTC
ae48dd4 Add GCC pragmas to silence compiler warning about ffi_prep_closure (GH-23327) (GH-23590) (cherry picked from commit cce3f0b0c88eba98bc11abe703a444bee7880ff8) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 01 December 2020, 15:07:50 UTC
4a44f53 [3.9] bpo-17852: Doc: Fix the tutorial about closing files (GH-23135) (GH-23527) Co-authored-by: Inada Naoki <songofacandy@gmail.com> (cherry picked from commit c8aaf71dde4888864c0c351e2f935f87652c3d54) Co-authored-by: Volker-Weissmann <39418860+Volker-Weissmann@users.noreply.github.com> 01 December 2020, 10:53:42 UTC
aef482f Fix bz2 examples markup (GH-23580) (cherry picked from commit 80a429eae95c15c2c2a6753376f2697c90c2b6b9) Co-authored-by: Andre Delfino <adelfino@gmail.com> 01 December 2020, 10:04:23 UTC
7e80c0f [3.9] [doc] Fix smtplib and xml.dom.minidom mark-up (GH-22769) (GH-23380) 01 December 2020, 07:58:36 UTC
ff51e5e 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 e41bfd15dd148627b4f39c2a5837bddd8894d345) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 30 November 2020, 22:36:06 UTC
b2652f2 bpo-42370: Check element before making mouse click in ttk tests (GH-23491) (cherry picked from commit b0b428510cfd604a8eef1f245f039331e671ea4a) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 30 November 2020, 22:34:43 UTC
aab9390 bpo-42501: Revise the usage note for Enums with the choices (GH-23563) (GH-23573) 30 November 2020, 21:21:08 UTC
cf22aa3 bpo-42487: don't call __getitem__ of underlying maps in ChainMap.__iter__ (GH-23534) (GH-23569) 30 November 2020, 17:07:26 UTC
03ae7e4 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 6cc2c419f6cf5ed336609ba01055e77d7c553e6d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 30 November 2020, 08:43:59 UTC
586bdd1 [3.9] bpo-42474: test TracebackException comparison to non-equal instances (GH-23557) 30 November 2020, 01:40:45 UTC
a83119d bpo-42450: Minor updates to the itertools recipes (GH-23555) (GH-23562) 29 November 2020, 19:14:10 UTC
fcf7391 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 86684319d3dad8e1a7b0559727a48e0bc50afb01) Co-authored-by: Renato Cunha <renatocunha@acm.org> 29 November 2020, 18:47:31 UTC
cf47b39 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 c642374b3ef72f6f300616f07aea2a3f9ed83e51) Co-authored-by: Mark Dickinson <mdickinson@enthought.com> Co-authored-by: Mark Dickinson <mdickinson@enthought.com> 29 November 2020, 09:58:01 UTC
cfb2f79 Fix dis markup (GH-23524) (cherry picked from commit fa840cc81d61b936ef95fdf7509a11b5927dc585) Co-authored-by: Andre Delfino <adelfino@gmail.com> 28 November 2020, 22:06:05 UTC
5d54dfa Fix multiprocessing markup (GH-23525) (cherry picked from commit 4b44472966f17ad96d4370569ae049de9873e4af) Co-authored-by: Andre Delfino <adelfino@gmail.com> 28 November 2020, 22:05:37 UTC
cc5eb93 bpo-42489: Fix the signature for list.sort() in the tutorial (GH-23538) (cherry picked from commit d41ec65ab7411e877ca33d05e8c900feca530635) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 28 November 2020, 15:14:23 UTC
df6c8bc 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 8085f742f4adfbc85f13fc734dfab036aa23acfb) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Zackery Spytz <zspytz@gmail.com> 28 November 2020, 15:07:51 UTC
761c5a1 Post 3.9.1rc1 26 November 2020, 17:49:45 UTC
faf4206 Merge tag 'v3.9.1rc1' into 3.9 Python 3.9.1rc1 26 November 2020, 17:49:05 UTC
dca61e7 Typo: fix inverted sense of statement (GH-23288) (GH-23512) 25 November 2020, 20:14:32 UTC
0aedcff Add more tests to the descriptor howto guide (GH-23506) (GH-23510) 25 November 2020, 10:16:32 UTC
9d2c2a8 bpo-12800: tarfile: Restore fix from 011525ee9 (GH-21409) Restore fix from 011525ee92eb1c13ad1a62d28725a840e28f8160. (cherry picked from commit 4fedd7123eaf147edd55eabbbd72e0bcc8368e47) Co-authored-by: Julien Palard <julien@palard.fr> 25 November 2020, 09:52:51 UTC
543724b Add doctests to the descriptor HowTo (GH-23500) (GH-23505) 25 November 2020, 06:47:17 UTC
88db374 Python 3.9.1rc1 24 November 2020, 16:48:47 UTC
15d42d7 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 d20b7ed9c1fabac3fdebb7ec362fe4f022a54639) Co-authored-by: Filipe Laíns <lains@archlinux.org> 24 November 2020, 13:25:29 UTC
96d906b bpo-41100: in test_platform, ignore 10.16 (GH-23485) (GH-23486) (cherry picked from commit c0c23ea72b76b06b7db0d09415fa90bab8ded63a) Co-authored-by: Ned Deily <nad@python.org> 24 November 2020, 06:34:16 UTC
3266991 bpo-41100: minor build installer fixes (GH-23480) (cherry picked from commit 936533ca0415c40dc64ccb5f8857720f32b3fcb4) Co-authored-by: Ned Deily <nad@python.org> 24 November 2020, 00:26:31 UTC
b641605 Typo (GH-23482) (#23483) (cherry picked from commit 989af256161ea3728e1f787329e07e70e0901bc8) Co-authored-by: Jesús Cea <jcea@jcea.es> Co-authored-by: Jesús Cea <jcea@jcea.es> 24 November 2020, 00:11:13 UTC
2019e4f Descriptor HowTo: Improve the fidelity of the member object simulation (GH-23475) (GH-23479) 23 November 2020, 19:31:45 UTC
3e53301 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 dd844a2916fb3a8f481ec7c732802c13c3375691) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 23 November 2020, 08:51:37 UTC
5aa6c99 bpo-41100: Update Whatsnew and installer ReadME for 3.9.1 (GH-23472) 23 November 2020, 04:43:04 UTC
8572059 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 690a5fa3ddc675a434730b057ddb5c33f44fd0b7) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> 22 November 2020, 18:22:21 UTC
41d1ebb Doc: fix typo in typing.Type docs (GH-23460) (cherry picked from commit 5ef53a88f3130cfcf9a9be3abd2ff2f997902647) Co-authored-by: John Belmonte <john@neggie.net> 22 November 2020, 15:16:48 UTC
e8b1c03 [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 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 22 November 2020, 10:18:40 UTC
0aab352 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 404a719b5127602c1a948f8e189ab61cd3f147d8) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> 22 November 2020, 06:35:36 UTC
4f87126 bpo-42391: Clarify documentation of TestCase.assertIs (GH-23348) Removing 'evaluate' makes it more consistent with other assertX entries. (cherry picked from commit bd8c22e1fa8f8f6e31ee083a8b9321a2c324f02f) Co-authored-by: Ram Rachum <ram@rachum.com> 22 November 2020, 06:24:21 UTC
dd20643 bpo-42426: IDLE: Fix reporting offset of the RE error in searchengine (GH-23447) (cherry picked from commit 453bc1da2023d6cbe362637a2e0b06d0521f013c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 22 November 2020, 05:30:46 UTC
748d38b [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 0f20bd9042c9b7fce20c3b9511cd0820b30094c3) Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com> 22 November 2020, 01:45:21 UTC
89d74d0 Clarify that Set._from_iterable is not required to be a classmethod. (GH-23272) (GH-23450) 21 November 2020, 20:20:26 UTC
3b5b1c8 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 4c24b08cd3239b417a5f8c7ba2ba54c840d051e3) Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com> Co-authored-by: Zhang Maiyun <myzhang1029@hotmail.com> 21 November 2020, 11:22:46 UTC
d153eb8 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 1db76394ea79030aa4ed5349c950f6c6da51450f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 21 November 2020, 11:09:40 UTC
713b4bb 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 01a202ab6b0ded546e47073db6498262086c52e9) Co-authored-by: Filipe Laíns <lains@archlinux.org> 21 November 2020, 09:46:21 UTC
c1bbca5 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 31729366e2bc09632e78f3896dbce0ae64914f28) Co-authored-by: Devin Jeanpierre <jeanpierreda@google.com> 21 November 2020, 09:18:41 UTC
ed02018 bpo-42419: Correct 'deprecatations' is What's New 3.9 (GH-23421) (GH-23435) (cherry picked from commit aa3a3521cef3998d4f9e7f7ff721163b6e3e5f39) Co-authored-by: Quentin Hibon <qh.public@yahoo.com> 21 November 2020, 04:34:55 UTC
c963da2 bpo-42407: Use possessive appostrophe in multiprocessing doc (GH-23400) (cherry picked from commit 6edf06b24a9335a2b0d44634a95e4f5ba0d586d9) Co-authored-by: ArioA <ArioA@users.noreply.github.com> 21 November 2020, 03:01:05 UTC
3763cc1 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 a993e901ebe60c38d46ecb31f771d0b4a206828c) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 20 November 2020, 21:46:49 UTC
f552f4b bpo-42360: Add advice to help avoid pickling issues. (GH-23305) (GH-23429) 20 November 2020, 21:19:49 UTC
4dd2112 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 7ddbaa7a1b3e61847ee99658be6a7268a049e302) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 20 November 2020, 07:28:21 UTC
1051ca4 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 e1dc0db8c7cb8c4d7343e051ba85146b375bb8e0) Co-authored-by: kj <28750310+Fidget-Spinner@users.noreply.github.com> 19 November 2020, 17:59:10 UTC
2acd9d0 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 1b54077ff6f5c1379e097e9f8e8648da9826d6ec) Co-authored-by: Yurii Karabas <1998uriyyo@gmail.com> 19 November 2020, 16:51:01 UTC
87c87b5 [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 b0aba1fcdc3da952698d99aec2334faa79a8b68c) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 18 November 2020, 23:44:30 UTC
36619e1 [3.9] Minor grammar edits for the descriptor howto guide (GH-GH-23175) (GH-23176) (cherry picked from commit 803187796f06bdc47ae74ce3d28c443e8cc2a27f) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> Automerge-Triggered-By: GH:JulienPalard 18 November 2020, 23:23:49 UTC
f9fa920 [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 fa8748271a61177e9bf609921fa464cc6990478b) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com> 18 November 2020, 22:37:37 UTC
37f6fe2 bpo-42336: Improve PCbuild batch files (GH-23275) (cherry picked from commit 2156d964a12285280c533af1c96eb273c58451e6) Co-authored-by: Steve Dower <steve.dower@python.org> 18 November 2020, 17:45:54 UTC
35bf8ea [3.9] bpo-40998: Fix a refleak in create_filter() (GH-23365) (GH-23369) (cherry picked from commit d1e38d4023aa29e7ed64d4f8eb9c1e4a3c86a2e5) 18 November 2020, 17:45:29 UTC
c53c3f4 bpo-42398: Fix "make regen-all" race condition (GH-23362) (GH-23367) 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) 18 November 2020, 16:11:09 UTC
994c68f bpo-40998: Address compiler warnings found by ubsan (GH-20929) 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> 18 November 2020, 16:01:48 UTC
802ff7c [3.9] bpo-41561: skip test_min_max_version_mismatch (GH-22308) (GH-23363) 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 18 November 2020, 12:42:38 UTC
71ba5f5 [3.9] bpo-42332: Add weakref slot to types.GenericAlias (GH-23250) (GH-23309) (cherry picked from commit 384b7a4bd988986bca227c7e85c32d766da74708) 17 November 2020, 22:45:08 UTC
48a9c0e [3.9] bpo-39934: Account for control blocks in 'except' in compiler. (GH-22395) (GH-23303) * bpo-39934: backport PR 22395 to 3.9 17 November 2020, 19:31:55 UTC
05a5d69 bpo-41686: Always create the SIGINT event on Windows (GH-23344) (GH-23347) 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)). 17 November 2020, 17:58:12 UTC
ac472b3 [3.9] bpo-42345: Fix three issues with typing.Literal parameters (GH-23294) (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> 17 November 2020, 15:23:36 UTC
656d50f bpo-40637: Don't test builtin PBKDF2 without builtin hashes (GH-20980) 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> 17 November 2020, 15:01:55 UTC
2c38e49 [3.9] bpo-42120: Remove macro defining copysign to _copysign on Windows (GH-23326) (GH-23331) (cherry picked from commit 9cc9e277254023c0ca08e1a9e379fd89475ca9c2) Co-authored-by: Steve Dower <steve.dower@python.org> 17 November 2020, 07:50:43 UTC
2b800ef bpo-42374: Allow unparenthesized walrus in genexps (GH-23319) (GH-23329) This fixes a regression that was introduced by the new parser. (cherry picked from commit cb3e5ed0716114393696ec7201e51fe0595eab4f) 16 November 2020, 23:38:58 UTC
cf70854 bpo-42350: Fix Thread._reset_internal_locks() (GH-23268) 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> 16 November 2020, 15:17:17 UTC
7c4d8fa bpo-42153 Fix link to IMAP documents in imaplib.rst (GH-23297) 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> 16 November 2020, 05:27:03 UTC
ec0788c More updates to the descriptor howto guide (GH-23238) (GH-23308) 16 November 2020, 02:27:56 UTC
2369759 bpo-42317: Improve docs of typing.get_args concerning Union (GH-23254) (cherry picked from commit c3b9592244a9112d8af9610ff1c4e1e4cd4bfaca) Co-authored-by: Dominik1123 <15989985+Dominik1123@users.noreply.github.com> 16 November 2020, 01:52:22 UTC
2837241 fix typo in ThreadedChildWatcher docs (GH-23277) (cherry picked from commit 8836574a0f34ae81643c8af79bbb9062e332a4e3) Co-authored-by: Thomas Grainger <tagrain@gmail.com> 14 November 2020, 12:24:21 UTC
faadc52 bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271) (cherry picked from commit 9b6934230c35e24d8582ea8c58456fa8eab72ae2) Co-authored-by: Steve Dower <steve.dower@python.org> 13 November 2020, 22:47:27 UTC
4defeb0 bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (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> 13 November 2020, 18:19:05 UTC
0f4dd87 [3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) (GH-23265) (cherry picked from commit 09490a109faaee9cc393b52742a8575c116c56ba) Co-authored-by: Dong-hee Na <donghee.na@python.org> 13 November 2020, 15:45:02 UTC
ec306a2 bpo-41617: Add _Py__has_builtin() macro (GH-23260) (GH-23262) Fix building pycore_bitutils.h internal header on old clang version without __builtin_bswap16() (ex: Xcode 4.6.3 on Mac OS X 10.7). Add a new private _Py__has_builtin() macro to check for availability of a preprocessor builtin function. Co-Authored-By: Joshua Root <jmr@macports.org> Co-authored-by: Joshua Root <jmr@macports.org> (cherry picked from commit b3b98082c5431e77c64cab2c85525a804436b505) 13 November 2020, 15:38:06 UTC
e5729ae bpo-42296: On Windows, fix CTRL+C regression (GH-23257) On Windows, fix a regression in signal handling which prevented to interrupt a program using CTRL+C. The signal handler can be run in a thread different than the Python thread, in which case the test deciding if the thread can handle signals is wrong. On Windows, _PyEval_SignalReceived() now always sets eval_breaker to 1 since it cannot test _Py_ThreadCanHandleSignals(), and eval_frame_handle_pending() always calls _Py_ThreadCanHandleSignals() to recompute eval_breaker. (cherry picked from commit d96a7a83133250377219227b5cfab4dbdddc5d3a) Co-authored-by: Victor Stinner <vstinner@python.org> 13 November 2020, 14:11:38 UTC
bc77704 [3.9] bpo-42086: Document AST operator nodes acts as a singleton (GH-22896) (GH-22897) Automerge-Triggered-By: GH:gvanrossum (cherry picked from commit b37c994e5ac73268abe23c52005b80cdca099793) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> 13 November 2020, 09:05:41 UTC
7ae19ef bpo-42237: Fix os.sendfile() on illumos (GH-23154) (cherry picked from commit fd4ed57674c675e05bd5d577dd5047a333c76c78) Co-authored-by: Jakub Stasiak <jakub@stasiak.at> 12 November 2020, 10:14:03 UTC
33922cb bpo-42140: Improve asyncio.wait function (GH-22938) GH- Improve asyncio.wait function The original code creates the futures set two times. We can create this set before, avoiding the second creation. This new behaviour [breaks the aiokafka library](https://github.com/aio-libs/aiokafka/pull/672), because it gives an iterator to that function, so the second iteration become empty. Automerge-Triggered-By: GH:1st1 (cherry picked from commit 7e5ef0a5713f968f6e942566c78bf57ffbef01de) Co-authored-by: Diogo Dutra <diogodutradamata@gmail.com> 10 November 2020, 23:10:57 UTC
f8bea0a [3.9] bpo-4bpo-42314: Fix the documentation for venv --upgrade-deps (GH-22113) (GH-23232) It was added in 3.9, not 3.8. 10 November 2020, 23:06:34 UTC
14a343a bpo-42014: shutil.rmtree: call onerror with correct function (GH-22585) The onerror is supposed to be called with failed function, but in this case lstat is wrongly used instead of open. Not sure if this needs bug or not... Automerge-Triggered-By: GH:hynek (cherry picked from commit e59b2deffde61e5641cabd65034fa11b4db898ba) Co-authored-by: Michal Čihař <michal@cihar.com> 10 November 2020, 16:29:35 UTC
90115a2 bpo-42183: Fix a stack overflow error for asyncio Task or Future repr() (GH-23020) The overflow occurs under some circumstances when a task or future recursively returns itself. Co-authored-by: Kyle Stanley <aeros167@gmail.com> (cherry picked from commit 42d873c63aa9d160c132be4a34599531574db12c) Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com> 10 November 2020, 14:20:52 UTC
back to top