https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
0b1a1c8 Python 3.9.0b2 08 June 2020, 18:41:34 UTC
3dc4428 Add multicore support to deccheck.py. (GH-20731) (cherry picked from commit 951d680d56d8c32556437a86f6b42f221635b97f) Authored-by: Stefan Krah <skrah@bytereef.org> 08 June 2020, 17:55:13 UTC
ecdd28c Remove deleted libmpdec header from the Visual Studio build machinery. (GH-20730) (cherry picked from commit 0c59f440f4c9dca658e6b18db14b67b750e25a87) Authored-by: Stefan Krah <skrah@bytereef.org> 08 June 2020, 17:51:06 UTC
8175064 bpo-40854: Allow overriding sys.platlibdir via PYTHONPLATLIBDIR env-var (GH-20605) (GH-20725) (cherry picked from commit 8f023a2f664f902a3d0b7a6f64d63afc0d1c15ae) Co-authored-by: Sandro Mani <manisandro@gmail.com> 08 June 2020, 17:36:13 UTC
298c8c8 bpo-40861: Enable optimizations when building liblzma (GH-20724) (cherry picked from commit 3a3a30c5a4622e18be9f7e4a239dc9e0d7c8054c) Co-authored-by: Steve Dower <steve.dower@python.org> 08 June 2020, 17:09:01 UTC
dedaac0 bpo-40910: Export Py_GetArgcArgv() function (GH-20721) (GH-20723) Export explicitly the Py_GetArgcArgv() function to the C API and document the function. Previously, it was exported implicitly which no longer works since Python is built with -fvisibility=hidden. * Add PyConfig._orig_argv member. * Py_InitializeFromConfig() no longer calls _PyConfig_Write() twice. * PyConfig_Read() no longer initializes Py_GetArgcArgv(): it is now _PyConfig_Write() responsibility. * _PyConfig_Write() result type becomes PyStatus instead of void. * Write an unit test on Py_GetArgcArgv(). (cherry picked from commit e81f6e687d0f04a45f2389d0b43fafd6d8491624) 08 June 2020, 16:44:50 UTC
1220a47 bpo-33187: Document 3.9 changes to xml.etree.ElementInclude.include (GH-20438) Looks like the merging of bpo-33187 and bpo-20928 was racy, resulting in this change going undocumented. (cherry picked from commit 301f0d4ff9b6bd60599eea0612904f65a92e6dd9) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> 08 June 2020, 14:47:46 UTC
60edee8 Update macOS installer welcome files for 3.9.0 beta (GH-20719) 08 June 2020, 12:47:27 UTC
2b33cc3 [3.9] Remove PEG-specific syntax error check in the old parser (GH-20717) 08 June 2020, 10:27:58 UTC
8df4f39 bpo-40903: Handle multiple '=' in invalid assignment rules in the PEG parser (GH-20697) Automerge-Triggered-By: @pablogsal (cherry picked from commit 9f495908c5bd3645ed1af82d7bae6782720dab77) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 08 June 2020, 09:22:06 UTC
66605d1 allow macOS installer builds to package pre-built html docs (GH-20715) build-installer now looks in its directory of source tarballs for a suitable html tarball of the same version. If so, it will unpack and use it rather than rebuilding the html format documentation set from the source repo. This is intended as a speedup for test builds of the installer. Files names must be in the same format as produced by the docs build for download, for example, `python-3.9.0b1-docs-html.tar.bz2`. (cherry picked from commit 63fc55b2eab0331465605a49bfd28a1bcb997f92) Co-authored-by: Ned Deily <nad@python.org> 08 June 2020, 08:11:43 UTC
3deded9 Deny eval() direct access to builtins (GH-20713) (GH-20714) 08 June 2020, 07:19:27 UTC
be5ed59 bpo-22021: Update root_dir and base_dir documentation in shutil (GH-10367) Also added an example in shutil in order to make more clear how they are to be used. Initially reported by Weinan Li on bpo. (cherry picked from commit 7633371dace67aaa21eb4b86f889441571ec4167) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 08 June 2020, 05:08:14 UTC
1e72fb2 bpo-40741: Update macOS installer to use SQLite 3.32.2. (GH-20705) (cherry picked from commit 37eed5a9ee7c802e7151ee9939ed604032886639) Co-authored-by: Ned Deily <nad@python.org> 08 June 2020, 02:43:11 UTC
9cf1be4 bpo-39791 native hooks for importlib.resources.files (GH-20576) * Provide native .files support on SourceFileLoader. * Add native importlib.resources.files() support to zipimporter. Remove fallback support. * make regen-all * 📜🤖 Added by blurb_it. * Move 'files' into the ResourceReader so it can carry the relevant module name context. * Create 'importlib.readers' module and add FileReader to it. * Add zip reader and rely on it for a TraversableResources object on zipimporter. * Remove TraversableAdapter, no longer needed. * Update blurb. * Replace backslashes with forward slashes. * Incorporate changes from importlib_metadata 2.0, finalizing the interface for extension via get_resource_reader. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 843c27765652e2322011fb3e5d88f4837de38c06) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> 08 June 2020, 01:30:08 UTC
6440911 bpo-40904: Fix segfault in the new parser with f-string containing yield statements with no value (GH-20701) (cherry picked from commit 972ab0327675e695373fc6272d5ac24e187579ad) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 08 June 2020, 01:08:53 UTC
71f5016 bpo-39791: Support file systems that cannot support non-ascii filenames (skipping tests in that case). (GH-20681) (cherry picked from commit 2efe18bf277dd0f38a1d248ae6bdd30947c26880) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> 07 June 2020, 15:17:45 UTC
1d711f2 bpo-40724: Fix return type of test helper function heapctypewithbuffer_releasebuffer() (GH-20685) (GH-20690) (cherry picked from commit b8867e5d5aca33511942632b5f4e359b9245b2fa) Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr> 07 June 2020, 07:28:03 UTC
1e4fa91 bpo-40724: Support setting buffer slots from type specs (GH-20648) (GH-20683) This is not part of the limited API but makes the buffer slots available for type specs. (cherry picked from commit f7c4e236429606e1c982cacf24e10fc86ef4462f) 07 June 2020, 07:06:40 UTC
90ee51f bpo-40870: Invalidate usage of some constants with ast.Name (GH-20649) (cherry picked from commit 68874a8502da440a1dc4746cf73262648b870aee) Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> 06 June 2020, 17:04:38 UTC
18f1226 Refactor scripts in Tools/peg_generator/scripts (GH-20401) (cherry picked from commit ba6fd87e41dceb01dcdacc57c722aca12cde42a9) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 06 June 2020, 04:41:12 UTC
d5e7348 bpo-40862: Raise TypeError when const is given to argparse.BooleanOptionalAction (GH-20623) (GH-20664) 06 June 2020, 02:31:18 UTC
15fec56 bpo-40880: Fix invalid read in newline_in_string in pegen.c (GH-20666) * bpo-40880: Fix invalid read in newline_in_string in pegen.c * Update Parser/pegen/pegen.c Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> * Add NEWS entry Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> (cherry picked from commit 2e6593db0086004a1ca7f7049218ff9573d473c2) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 06 June 2020, 00:13:14 UTC
79e6c15 bpo-40883: Fix memory leak in fstring_compile_expr in parse_string.c (GH-20667) (cherry picked from commit a54096e30523534e8eebb8dc1011b4536ed237a8) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 06 June 2020, 00:10:57 UTC
a4fa9a9 bpo-39791: Refresh importlib.metadata from importlib_metadata 1.6.1. (GH-20659) (GH-20661) * Refresh importlib.metadata from importlib_metadata 1.6.1. * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> (cherry picked from commit 161541ab45278df6603dd870113b10f13e4d9e16) Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com> 05 June 2020, 21:46:24 UTC
cdc3d9c Fix missing FloatOperation in EXTRA_FUNCTIONALITY path. (GH-20655) (#20660) (cherry picked from commit 5fe1df1886e2e53b04bf76ef916857271d3c8f20) Authored-by: Stefan Krah <skrah@bytereef.org> 05 June 2020, 20:22:49 UTC
83bff88 bpo-40874: Update to libmpdec-2.5.0 (GH-20652) (cherry picked from commit 087d612efebe7c64e5f079b07e0454111859830e) Authored-by: Stefan Krah <skrah@bytereef.org> 05 June 2020, 19:41:17 UTC
3dfe549 bpo-40807: Show warnings once from codeop._maybe_compile (GH-20486) * bpo-40807: Show warnings once from codeop._maybe_compile * Move catch_warnings * news Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> (cherry picked from commit 052d3fc0907be253cfd64b2c737a0b0aca586011) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com> 04 June 2020, 23:59:44 UTC
e4e5ec1 bpo-40865: Remove unused insint() macro from hash modules (GH-20627) Automerge-Triggered-By: @tiran (cherry picked from commit 6ed578f6dbffdec94f62cc2e36d626fc195678d7) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 04 June 2020, 20:27:23 UTC
082cff1 Fix spacing in docs for tarfile (GH-20629) Before ``` content.txt is 42 bytes in size and isa regular file. folder is 420 bytes in size and isa directory. magic is 4200 bytes in size and issomething else. ``` After: ``` content.txt is 42 bytes in size and is a regular file. folder is 420 bytes in size and is a directory. magic is 4200 bytes in size and is something else. ``` Automerge-Triggered-By: @orsenthil (cherry picked from commit 7a280197f4162e5fcdde6f34701a9fa6e669190d) Co-authored-by: Harsha Laxman <HarshaLaxman@users.noreply.github.com> 04 June 2020, 20:19:33 UTC
196810a bpo-17258: Add requires_hashdigest to multiprocessing tests (GH-20412) Skip some :mod:`multiprocessing` tests when MD5 hash digest is blocked. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit b022e5cffbd3ff51ae361cf80f2a3b660be8b1ee) Co-authored-by: Christian Heimes <christian@python.org> 04 June 2020, 17:22:36 UTC
6d62dc1 [3.9] bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578) (GH-20618) * bpo-40826: Add _Py_EnsureTstateNotNULL() macro (GH-20571) Add _Py_EnsureTstateNotNULL(tstate) macro: call Py_FatalError() if tstate is NULL, the error message contains the current function name. (cherry picked from commit 3026cad59b87751a9215111776cac8e819458fce) * bpo-40826: PyOS_InterruptOccurred() requires GIL (GH-20578) PyOS_InterruptOccurred() now fails with a fatal error if it is called with the GIL released. (cherry picked from commit cbe129692293251e7fbcea9ff0d822824d90c140) 03 June 2020, 18:16:39 UTC
5d2396c [3.9] bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20613) * bpo-40826: Fix GIL usage in PyOS_Readline() (GH-20579) Fix GIL usage in PyOS_Readline(): lock the GIL to set an exception. Pass tstate to my_fgets() and _PyOS_WindowsConsoleReadline(). Cleanup these functions. (cherry picked from commit c353764fd564e401cf47a5d9efab18c72c60014e) * bpo-40826: Add _PyOS_InterruptOccurred(tstate) function (GH-20599) my_fgets() now calls _PyOS_InterruptOccurred(tstate) to check for pending signals, rather calling PyOS_InterruptOccurred(). my_fgets() is called with the GIL released, whereas PyOS_InterruptOccurred() must be called with the GIL held. test_repl: use text=True and avoid SuppressCrashReport in test_multiline_string_parsing(). Fix my_fgets() on Windows: fgets(fp) does crash if fileno(fp) is closed. (cherry picked from commit fa7ab6aa0f9a4f695e5525db5a113cd21fa93787) 03 June 2020, 15:49:25 UTC
a125561 Update error message in _zoneinfo.py to use f-string (GH-20577) Inline with the rest of the file, updated error message to use f-string. (cherry picked from commit 5b9fbbabacca0378755fd9cadc4a7cc01a71eaef) Co-authored-by: aboddie <64019758+aboddie@users.noreply.github.com> 03 June 2020, 15:09:49 UTC
74a1fce bpo-40767: Allow pure Wayland to get default XDG web browser (GH-20382) Would be nice to backport to python 3.7+. I don't think it's worth the hassle to backport this all the way down to 3.10. But I'll let the maintainers decide. This is hard to test because the test setup already includes this [environment variable](https://github.com/python/cpython/blob/master/Lib/test/pythoninfo.pyGH-L292) Let me know if something doesn't match the PR guidelines. This is my first PR in the python source code. (cherry picked from commit c822efeda9a0afe87cf3429724732fc8e19a01fb) Co-authored-by: Jeremy Attali <jeremy.attali@gmail.com> 03 June 2020, 13:04:29 UTC
20fe532 [3.9] Fix MSVC warnings in pythonrun.c (GH-20587) (GH-20592) (cherry picked from commit 90d297012b3848454) 03 June 2020, 07:34:55 UTC
ff442f3 bpo-40241: What's New in Python 3.9: opaque PyGC_Head (GH-20586) (cherry picked from commit 337d3103a2344e1fec75985e85fabcbdedac7d26) Co-authored-by: Victor Stinner <vstinner@python.org> 02 June 2020, 10:09:28 UTC
50e847a bpo-40244: Remove XLC's support from the noreturn flag (GH-20588) Automerge-Triggered-By: @pablogsal (cherry picked from commit 033d10bd21d962a59c6c4fc503092046baa451a1) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> 02 June 2020, 08:39:55 UTC
b90b61f Ensure correct version of Sphinx is used for Windows builds (GH-20582) (cherry picked from commit fe5dd78182dbf4937bcc2b113ca7526bfad0192b) Co-authored-by: Steve Dower <steve.dower@python.org> 01 June 2020, 21:24:10 UTC
3c7609a [3.9] bpo-40630: Add tracemalloc.reset_peak (GH-20102) (GH-20545) * bpo-40630: Add tracemalloc.reset_peak (GH-20102, cherrypick 8b62644) The reset_peak function sets the peak memory size to the current size, representing a resetting of that metric. This allows for recording the peak of specific sections of code, ignoring other code that may have had a higher peak (since the most recent `tracemalloc.start()` or tracemalloc.clear_traces()` call). * Adjust docs to point to 3.9 01 June 2020, 17:26:22 UTC
410b730 Make sure that keyword arguments are merged into the arguments dictionary when dict unpacking and keyword arguments are interleaved. (GH-20553) (GH-20569) (cherry picked from commit db64f12e4deda2abbafb6d2bd5c06762fca991ff) Co-authored-by: Mark Shannon <mark@hotpy.org> 01 June 2020, 16:07:32 UTC
a169961 bpo-40831: Remove an incorrect statement in the Windows docs (GH-20570) (cherry picked from commit c8966667bbdb284c3780ef6cec8a3870935a6bb7) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 01 June 2020, 15:53:27 UTC
24a88b0 bpo-30008: Fix OpenSSL no-deprecated compilation (GH-20397) Fix :mod:`ssl`` code to be compatible with OpenSSL 1.1.x builds that use ``no-deprecated`` and ``--api=1.1.0``. Note: Tests assume full OpenSSL API and fail with limited API. Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Mark Wright <gienah@gentoo.org> (cherry picked from commit a871f692b4a2e6c7d45579693e787edc0af1a02c) Co-authored-by: Christian Heimes <christian@python.org> 01 June 2020, 07:18:39 UTC
0a67463 bpo-17005: Move topological sort functionality to its own module (GH-20558) The topological sort functionality that was introduced initially in the functools module has been moved to a new graphlib module to better accommodate the new tools and keep the original scope of the functools module. (cherry picked from commit 2f172d8f1525defe9bba4d49e967fdfc69151731) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 01 June 2020, 00:01:37 UTC
a176b31 Fix typo in "What's new in Python 3.9" (GH-20559) Automerge-Triggered-By: @pablogsal (cherry picked from commit 491a3d3a75b656c8317d8ce343aea767978b946c) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 31 May 2020, 23:35:24 UTC
96d9107 bpo-40759: Deprecate the symbol module (GH-20364) Automerge-Triggered-By: @pablogsal (cherry picked from commit cf88871d6a9c12e7b7e5f4d65abc2ec6e2fe952e) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> 31 May 2020, 22:23:29 UTC
cdb015b Fix asyncio.to_thread() documented return type (GH-20547) When I wrote the documentation for `asyncio.to_thread()`, I mistakenly assumed that `return await loop.run_in_executor(...)` within an async def function would return a Future. In reality, it returns a coroutine. This likely won't affect typical usage of `asyncio.to_thread()`, but it's important for the documentation to be correct here. In general, we also tend to avoid returning futures from high-level APIs in asyncio. (cherry picked from commit 2b201369b435a4266bda5b895e3b615dbe28ea6e) Co-authored-by: Kyle Stanley <aeros167@gmail.com> 31 May 2020, 07:26:20 UTC
44400e8 bpo-40829: Add a what's new entry about deprecation of shuffle's random parameter (GH-20541) (GH-20544) 30 May 2020, 22:33:06 UTC
588efc2 bpo-40798: Generate a different message for already removed elements (GH-20483) (cherry picked from commit 735d902b363b759df9ff00e58bbf4f7e2bde78cd) Co-authored-by: Florian Dahlitz <f2dahlitz@freenet.de> 30 May 2020, 07:54:28 UTC
78cf711 closes bpo-29017: Update the bindings for Qt information with PySide2 (GH-20149) Reference to PySide has been removed has it is for Qt 4, which has reached end of life. (cherry picked from commit 4649202ea75d48e1496e99911709824ca2d3170e) Co-authored-by: Samuel Gaist <samuel.gaist@idiap.ch> 30 May 2020, 02:04:25 UTC
9f3f70f bpo-39885: Make IDLE context menu cut and copy work again (GH-18951) Leave selection when right click within. This exception to clearing selections when right-clicking was omitted from the previous commit, 4ca060d. I did not realize that this completely disabled the context menu entries, and I should have merged a minimal fix immediately. An automated test should follow. (cherry picked from commit 97e4e0f53d6690db6b942678489716a30925b8af) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu> 29 May 2020, 23:13:21 UTC
805fa54 Further de-linting of zoneinfo module (GH-20499) * Remove unused imports in zoneinfo * Remove unused variables in zoneinfo * Remove else after raise (cherry picked from commit 364b5ead1584583db91ef7f9d9f87f01bfbb5774) Co-authored-by: Paul Ganssle <paul@ganssle.io> 29 May 2020, 13:53:52 UTC
ad088ca bpo-40780: Fix failure of _Py_dg_dtoa to remove trailing zeros (GH-20435) (GH-20514) * Fix failure of _Py_dg_dtoa to remove trailing zeros * Add regression test and news entry * Add explanation about why it's safe to strip trailing zeros * Make code safer, clean up comments, add change note at top of file * Nitpick: avoid implicit int-to-float conversion in tests (cherry picked from commit 895c9c1d438367722f74f437fda96767d770662b) Co-authored-by: Mark Dickinson <mdickinson@enthought.com> 29 May 2020, 13:46:54 UTC
8fcc147 bpo-40784: Fix sqlite3 deterministic test (GH-20448) (cherry picked from commit c610d970f5373b143bf5f5900d4645e6a90fb460) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 29 May 2020, 12:46:52 UTC
a6ae02d bpo-39040: Fix parsing of email mime headers with whitespace between encoded-words. (gh-17620) * bpo-39040: Fix parsing of email headers with encoded-words inside a quoted string. It is fairly common to find malformed mime headers (especially content-disposition headers) where the parameter values, instead of being encoded to RFC standards, are "encoded" by doing RFC 2047 "encoded word" encoding, and then enclosing the whole thing in quotes. The processing of these malformed headers was incorrectly leaving the spaces between encoded words in the decoded text (whitespace between adjacent encoded words is supposed to be stripped on decoding). This changeset fixes the encoded word processing inside quoted strings (bare-quoted-string) to do correct RFC 2047 decoding by stripping that whitespace. (cherry picked from commit 21017ed904f734be9f195ae1274eb81426a9e776) Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com> 29 May 2020, 11:43:06 UTC
8e5f11d Indicate that abs() method accept argument that implement __abs__(), just like call() method in the docs (GH-20509) (cherry picked from commit 28316422124206f63ddd4b91f2e19c54b6e9cd9d) Co-authored-by: Windson yang <wiwindson@outlook.com> 29 May 2020, 11:42:40 UTC
6637bd4 bpo-30064: Properly skip unstable loop.sock_connect() racing test (GH-20494) (cherry picked from commit dc4eee9e266267498a6b783a0abccc23c06f2b87) Co-authored-by: Fantix King <fantix.king@gmail.com> 28 May 2020, 22:17:33 UTC
1a7e34c Note the output ordering of combinatoric functions (GH-19732) (GH-20501) 28 May 2020, 20:32:36 UTC
e4cc3a7 bpo-40806: itertools.product immediately consumes its inputs (GH-20492) (GH-20498) 28 May 2020, 16:58:33 UTC
eceee54 [3.9] bpo-40777: Initialize PyDateTime_IsoCalendarDateType.tp_base at run-time (GH-20493) (GH-20495) Recent changes to _datetimemodule broke compilation on mingw; see the comments in this change for details. FWIW, @corona10: this issue is why `PyType_FromModuleAndSpec` & friends take the `bases` argument at run time. (cherry picked from commit 459acc551656785bc4a3363d65c7a60f822da8e3) Co-authored-by: Petr Viktorin <encukou@gmail.com> 28 May 2020, 16:41:41 UTC
a5936ad bpo-1294959: Try to clarify the meaning of platlibdir (GH-20332) Try to make the meaning of platlibdir clear. The previous wording could be misinterpreted to suggest that it will be used to find all shared libraries on the system, and not just Python extensions. Furthermore, it was unclear whether it affects third-party (site-packages) extensions or not. The new wording tries to make its dual purpose clear, and provide the additional example of extensions in site-packages. (cherry picked from commit 242d95659b6b4ff4fb54b58a30454dafa311d4e9) Co-authored-by: Michał Górny <mgorny@gentoo.org> 28 May 2020, 16:41:31 UTC
6a47864 bpo-37878: PyThreadState_DeleteCurrent() was not removed (GH-20489) Update What's New in Python 3.9. PyThreadState_DeleteCurrent was not removed, but excluded from the limited C API. (cherry picked from commit fda7f6d61b13c68f59806db674e892fda4013348) Co-authored-by: Victor Stinner <vstinner@python.org> 28 May 2020, 16:34:47 UTC
bcbe5c5 bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264) Heap types now always visit the type in tp_traverse. See added docs for details. This reverts commit 0169d3003be3d072751dd14a5c84748ab63a249f. Automerge-Triggered-By: @encukou (cherry picked from commit 1cf15af9a6f28750f37b08c028ada31d38e818dd) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 28 May 2020, 15:12:23 UTC
1d82f00 bpo-30064: Fix unstable asyncio "racing" socket tests (GH-20485) Skip new "racing" socket tests which fail randomly until someone fix them, to ease analysis of buildbot failures (skip tests which are known to be broken/unstable). (cherry picked from commit 84ee7e1573d166fe7a9be676813e12523b62ab24) Co-authored-by: Victor Stinner <vstinner@python.org> 28 May 2020, 14:28:17 UTC
8183e11 [3.9] bpo-40791: Use CRYPTO_memcmp() for compare_digest (GH-20456) (GH-20461) hashlib.compare_digest uses OpenSSL's CRYPTO_memcmp() function when OpenSSL is available. Note: The _operator module is a builtin module. I don't want to add libcrypto dependency to libpython. Therefore I duplicated the wrapper function and added a copy to _hashopenssl.c.. (cherry picked from commit db5aed931f8a617f7b63e773f62db468fe9c5ca1) Co-authored-by: Christian Heimes <christian@python.org> 28 May 2020, 12:09:38 UTC
d23ee5d Improve IO tutorial's "Old string formatting" section (GH-16251) * Use a more universal explanation of string interpolation rather than specifically referencing sprintf(), which depends on the reader having a C background. Co-authored-by: Kyle Stanley <aeros167@gmail.com> (cherry picked from commit eaca2aa117d663acf8160a0b4543ee2c7006fcc7) Co-authored-by: Adorilson Bezerra <adorilson@gmail.com> 28 May 2020, 01:41:38 UTC
de6b684 bpo-39939: Fix removeprefix issue number in the What's New in Python 3.9 (GH-20473) (GH-20474) (cherry picked from commit 56853d8ec6ed89bf5a9b81c3781a4df46ac391d3) Co-authored-by: Elazar Gershuni <elazarg@gmail.com> Co-authored-by: Elazar Gershuni <elazarg@gmail.com> 28 May 2020, 01:24:33 UTC
9e3c583 bpo-40795: ctypes calls unraisablehook with an exception (GH-20452) If ctypes fails to convert the result of a callback or if a ctypes callback function raises an exception, sys.unraisablehook is now called with an exception set. Previously, the error was logged into stderr by PyErr_Print(). (cherry picked from commit 10228bad0452d94e66c964b625a0b61befa08e59) Co-authored-by: Victor Stinner <vstinner@python.org> 27 May 2020, 23:00:01 UTC
be240b8 Fix compiler warnings in _zoneinfo.c (GH-20342) ``` D:\a\cpython\cpython\Modules\_zoneinfo.c(903,52): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj] D:\a\cpython\cpython\Modules\_zoneinfo.c(904,44): warning C4267: '=': conversion from 'size_t' to 'unsigned int', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj] D:\a\cpython\cpython\Modules\_zoneinfo.c(1772,31): warning C4244: '=': conversion from 'ssize_t' to 'uint8_t', possible loss of data [D:\a\cpython\cpython\PCbuild\_zoneinfo.vcxproj] ``` (cherry picked from commit e4799b95945b44eb0e2eea26473db8e0a49ed0ee) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 27 May 2020, 21:08:20 UTC
9b83829 [3.9] bpo-40614: Respect feature version for f-string debug expressions (GH-20196) (GH-20464) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit c116c94) Co-authored-by: Shantanu <hauntsaninja@users.noreply.github.com> 27 May 2020, 21:01:11 UTC
3a2667d bpo-30064: Fix asyncio loop.sock_* race condition issue (GH-20369) (cherry picked from commit 210a137396979d747c2602eeef46c34fc4955448) Co-authored-by: Fantix King <fantix.king@gmail.com> 27 May 2020, 20:39:03 UTC
c011d1b [3.9] Backport GH-20440: Set p->error_indicator in more places (GH-20457) 27 May 2020, 20:20:43 UTC
1bfe659 [3.9] Backport GH-20370 and GH-20436: Soft keywords (GH-20458) 27 May 2020, 20:20:07 UTC
788d7bf bpo-13097: ctypes: limit callback to 1024 arguments (GH-19914) ctypes now raises an ArgumentError when a callback is invoked with more than 1024 arguments. The ctypes module allocates arguments on the stack in ctypes_callproc() using alloca(), which is problematic when large numbers of arguments are passed. Instead of a stack overflow, this commit raises an ArgumentError if more than 1024 parameters are passed. (cherry picked from commit 29a1384c040d39659e7d01f1fd7b6eb71ef2634e) Co-authored-by: Sean Gillespie <sean@swgillespie.me> 27 May 2020, 15:46:57 UTC
43fccb1 Fix the link to ncurses patch download in macos installer build script (GH-20421) Reason: the link `ftp://invisible-island.net/ncurses//5.9/ncurses-5.9-20120616-patch.sh.bz2` is dead, which prevents `Mac/BuildScript/build-installer.py` from completing. Looks like the host of the FTP server was changed to `ftp.invisible-island.net`, thus this proposal. Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com> (cherry picked from commit 7da46b676aed7111de34b57c8b942a7f3bb80327) Co-authored-by: Oleg Höfling <hoefling@users.noreply.github.com> 27 May 2020, 10:32:25 UTC
1c88bf8 bpo-39244: multiprocessing return default start method first on macOS (GH-18625) (cherry picked from commit db098bc1f05bd0773943e59f83489f05f28dedf8) Co-authored-by: idomic <michael.ido@gmail.com> 26 May 2020, 15:13:33 UTC
500cd89 bpo-38580: Document that select() accepts iterables, not just sequences (GH-16832) (cherry picked from commit 372ee27d4958302dac7ad6a8711f6fd04771b2e6) Co-authored-by: Jakub Stasiak <jakub@stasiak.at> 26 May 2020, 13:38:18 UTC
7df9c41 bpo-40737: Fix possible reference leak for sqlite3 initialization (GH-20323) (cherry picked from commit 5eb45d7d4e812e89d77da84cc619e9db81561a34) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> 26 May 2020, 12:38:51 UTC
66391b0 bpo-40637: Fix test_pbkdf2_hmac_py for missing sha1 (GH-20422) (cherry picked from commit be63019ed726b2da045bf232782062830bb6c27d) Co-authored-by: Christian Heimes <christian@python.org> 26 May 2020, 10:46:24 UTC
cc0f50d bpo-39301: State that floor division is used for right shift operations (GH-20347) (GH-20414) * bpo-39301: State that floor division is used for right shift operations * Remove "without overflow check" (cherry picked from commit af7553ac95a96713be847dd45bc5a8aeb0a75955) Co-authored-by: Zackery Spytz <zspytz@gmail.com> Co-authored-by: Zackery Spytz <zspytz@gmail.com> 26 May 2020, 08:33:10 UTC
5221a10 bpo-35714: Reject null characters in struct format strings (GH-16928) struct.error is now raised if there is a null character in a struct format string. (cherry picked from commit 3f59b55316f4c6ab451997902579aa69020b537c) Co-authored-by: Zackery Spytz <zspytz@gmail.com> 26 May 2020, 07:04:59 UTC
a729f4a Simplify creation of the __new__ method in namedtuple() (GH-20361) (GH-20409) 26 May 2020, 05:00:31 UTC
fda4765 Fix peg_generator compiler warnings under MSVC (GH-20405) (cherry picked from commit a2bbedc8b18c001d2f9e702e6e678efbb2990daa) Co-authored-by: Ammar Askar <ammar@ammaraskar.com> 26 May 2020, 04:52:21 UTC
6597e2a bpo-40745: Fix typos in NewType docs (GH-20379) (cherry picked from commit 2b0e654f91f28379c6c7ef5fd80e8754afb70935) Co-authored-by: ziheng <zihenglv@gmail.com> 26 May 2020, 04:52:14 UTC
b03e0ee [3.9] closes bpo-40774: Fix docs indentation for asyncio.create_subprocess_shell() (GH-20403) (#20407) (cherry picked from commit 4a0ac42) Co-authored-by: sth <sth.dev@tejp.de> 26 May 2020, 04:19:42 UTC
791a46e [3.9] bpo-38964: Print correct filename on a SyntaxError in an fstring (GH-20399) (GH-20404) When a `SyntaxError` in the expression part of a fstring is found, the filename attribute of the `SyntaxError` is always `<fstring>`. With this commit, it gets changed to always have the name of the file the fstring resides in. Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>. (cherry picked from commit f7b1e461567e5e3fa3ba46f589d9edc1b45b2dd0) 26 May 2020, 01:24:31 UTC
6cb0ad2 bpo-40246: Fix test_fstring when run with the old parser (GH-20402) 26 May 2020, 00:10:00 UTC
3c6c86a bpo-40688: Use the correct parser in the peg_generator scripts (GH-20235) The scripts in `Tools/peg_generator/scripts` mostly assume that `ast.parse` and `compile` use the old parser, since this was the state of things, while we were developing them. They need to be updated to always use the correct parser. `_peg_parser` is being extended to support both parsing and compiling with both parsers. (cherry picked from commit 9645930b5bc1833ef495891d22052d1ba65ab7ea) Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> 25 May 2020, 20:11:36 UTC
318a18e bpo-23082: Better error message for PurePath.relative_to() from pathlib (GH-19611) Co-authored-by: Sadhana Srinivasan <rotuna@Sadhanas-MBP.fritz.box> (cherry picked from commit 448325369ff73011d34d6c3a493014fe3ead8843) Co-authored-by: Rotuna <sadhanasrinivasan@protonmail.com> 25 May 2020, 20:01:20 UTC
31084be bpo-40750: Do not expand the new parser debug flags if Py_BUILD_CORE is not defined (GH-20393) (cherry picked from commit deb4355a37e41edf1199920789fe9572c1fb43c2) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 25 May 2020, 19:37:56 UTC
82da2c3 bpo-40750: Support -d flag in the new parser (GH-20340) (cherry picked from commit 800a35c623bbcdb5793c7d7a4974524286311479) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> 25 May 2020, 17:58:03 UTC
9a5e643 bpo-39245: Fix docs links to the stable ABI (GH-20388) Automerge-Triggered-By: @vstinner (cherry picked from commit e50883ccc4bfa198c3d5e3367306324fc49730cb) Co-authored-by: Miro Hrončok <miro@hroncok.cz> 25 May 2020, 15:49:35 UTC
20b2bf3 bpo-38972: Fix typos in PowerShell Execution Policies links (GH-20383) (cherry picked from commit ef16958d17e83723334a51428f410f726d6492a7) Co-authored-by: Miro Hrončok <miro@hroncok.cz> 25 May 2020, 15:13:49 UTC
1fe1a14 bpo-40671: Prepare _hashlib for PEP 489 (GH-20180) (cherry picked from commit 20c22db602bf2a51f5231433b9054290f8069b90) Co-authored-by: Christian Heimes <christian@python.org> 25 May 2020, 12:18:49 UTC
7015823 bpo-40695: Limit hashlib builtin hash fallback (GH-20259) :mod:`hashlib` no longer falls back to builtin hash implementations when OpenSSL provides a hash digest and the algorithm is blocked by security policy. Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit 4cc2f9348c6e899b76af811fa3bb6c60de642a28) Co-authored-by: Christian Heimes <christian@python.org> 25 May 2020, 09:07:35 UTC
82c274e bpo-40334: Support suppressing of multiple optional variables in Pegen (GH-20367) (cherry picked from commit cba503151056b448b7a3730dc36ef6655550ade5) Co-authored-by: Batuhan Taskaya <batuhanosmantaskaya@gmail.com> 24 May 2020, 22:38:47 UTC
1a4e9e6 bpo-36290: Fix keytword collision handling in AST node constructors (GH-12382) (cherry picked from commit c73914a562580ae72048876cb42ed8e76e2c83f9) Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr> 24 May 2020, 21:32:32 UTC
46c1b9c bpo-17050: Remove documentation on argparse.REMAINDER (GH-18661) (GH-20363) 24 May 2020, 21:31:17 UTC
4bb4cde bpo-40443: Remove unused imports in the zoneinfo (GH-20354) (cherry picked from commit 3436f5f899f272d7164add072beb18eebd46d777) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com> 24 May 2020, 14:58:25 UTC
ebf6505 bpo-40705: Fix use-after-free in _zoneinfo's module_free (GH-20280) (cherry picked from commit 06a1b8915d6674e40f0dccc422ca2c06212392d8) Co-authored-by: Ammar Askar <ammar@ammaraskar.com> 24 May 2020, 14:43:02 UTC
back to top