https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
b973ab3 Python 3.12.0rc3 18 September 2023, 19:48:09 UTC
74a7f5d [3.12] gh-109496: Detect Py_DECREF() after dealloc in debug mode (GH-109539) (#109545) gh-109496: Detect Py_DECREF() after dealloc in debug mode (GH-109539) On a Python built in debug mode, Py_DECREF() now calls _Py_NegativeRefcount() if the object is a dangling pointer to deallocated memory: memory filled with 0xDD "dead byte" by the debug hook on memory allocators. The fix is to check the reference count *before* checking for _Py_IsImmortal(). Add test_decref_freed_object() to test_capi.test_misc. (cherry picked from commit 0bb0d88e2d4e300946e399e088e2ff60de2ccf8c) Co-authored-by: Victor Stinner <vstinner@python.org> 18 September 2023, 17:39:27 UTC
0620bc7 [3.12] gh-109408: Azure Pipelines: test 3.12 branch (GH-109453) (#109535) gh-109408: Azure Pipelines: test 3.12 branch (GH-109453) (cherry picked from commit dd5d2141abf78fcd787f12654f08bf1ee92288bf) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 18 September 2023, 15:51:23 UTC
9412a87 [3.12] gh-109371: Fix monitoring with instruction events set (gh-109385) (#109542) gh-109371: Fix monitoring with instruction events set (gh-109385) (cherry picked from commit 412f5e85d6b9f2e90c57c54539d06c7a025a472a) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com> 18 September 2023, 15:40:51 UTC
2401b98 [3.12] gh-108843: fix ast.unparse for f-string with many quotes (GH-108981) (#109541) gh-108843: fix ast.unparse for f-string with many quotes (GH-108981) (cherry picked from commit 23f9f6f46454455bc6015e83ae5b5e946dae7698) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 18 September 2023, 14:44:13 UTC
f6fc831 [3.12] gh-102251: Disable non-rerunnable test in test_import (GH-106013) (#109540) gh-102251: Disable non-rerunnable test in test_import (GH-106013) (cherry picked from commit 4849a80dd1cbbc5010e8749ba60eb91a541ae4e7) Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> 18 September 2023, 14:31:01 UTC
fbf703c [3.12] Fix extraneous backslashes in hashlib docs (GH-109468) (#109530) Fix extraneous backslashes in hashlib docs (GH-109468) (cherry picked from commit ce5b3e19e6fb940fa72db1b98a8df80f6e464265) Co-authored-by: Anthony Sottile <asottile@umich.edu> 18 September 2023, 10:29:19 UTC
5c439fb [3.12] gh-109408: Remove Ubuntu unit tests from Azure Pipelines (GH-109452) (#109519) gh-109408: Remove Ubuntu unit tests from Azure Pipelines (GH-109452) (cherry picked from commit a75daed7e004ee9a53b160307c4c072656176a02) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 17 September 2023, 23:22:15 UTC
cc12f66 [3.12] gh-109451: Fix wrong format specifier in logging documentation (GH-109465) (#109483) gh-109451: Fix wrong format specifier in logging documentation (GH-109465) (cherry picked from commit 929cc4e4a0999b777e1aa94f9c007db720e67f43) Co-authored-by: AlberLC <37489786+AlberLC@users.noreply.github.com> 17 September 2023, 20:50:37 UTC
6552879 [3.12] gh-109414: Add some basic information about venvs in the introduction. (GH-109440) (#109481) gh-109414: Add some basic information about venvs in the introduction. (GH-109440) (cherry picked from commit a6846d45ff3c836bc859c40e7684b57df991dc05) Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk> Co-authored-by: Victor Stinner <vstinner@python.org> 17 September 2023, 20:50:12 UTC
02df0df [3.12] gh-109474: Update two Unix packaging URLs (GH-109307) (#109477) gh-109474: Update two Unix packaging URLs (GH-109307) update packaging URLs fix a broken URL for fedora RPM packaging guide and fix a URL redirect for Slackware packaging guide. (cherry picked from commit 0b38ce440bd76b3d25b6d042ee9613841fb4a947) Co-authored-by: partev <petrosyan@gmail.com> 17 September 2023, 20:50:00 UTC
52bbb22 [3.12] gh-109096: Silence test_httpservers fork + threads DeprecationWarning on CGI support (#109471) [3.12] gh-109096: Silence test_httpservers fork + threads DeprecationWarning on CGI support. We're not fixing CGIHTTPRequestHandler as it is deprecated in 3.13 to go away in 3.15. This just removes noise from our test suite when warnings are rightfully enabled. If the long pre-existing fork+threading mix here ever causes anyone deadlocks as is possible, disabling the test entirely on that platform makes sense rather than attempting to fix http.server.CGIHTTPRequestHandler or refactor to not use a threaded server in the test. 17 September 2023, 20:49:42 UTC
e9a9052 [3.12] Docs: Superseded modules: list only module names (GH-109439) (#109445) Docs: Superseded modules: list only module names (GH-109439) (cherry picked from commit b434dd7e3625d442392b4adf952685c8adf769f7) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 15 September 2023, 14:11:17 UTC
316f0ee [3.12] gh-109395: Remove skipped macOS builds from Azure Pipelines (GH-109400) (#109441) gh-109395: Remove skipped macOS builds from Azure Pipelines (GH-109400) (cherry picked from commit 1ece084be3684e06101aa1efa82d3ed98c99c432) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 15 September 2023, 11:23:08 UTC
dba95c5 [3.12] gh-109395: Remove skipped coverage job from Azure Pipelines (GH-109412) (#109433) gh-109395: Remove skipped coverage job from Azure Pipelines (GH-109412) (cherry picked from commit fa493900fbf19cbfac44164f3d8acb4f598ff3c1) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 15 September 2023, 09:32:05 UTC
35c633d [3.12] gh-109219: propagate free vars through type param scopes (GH-109377) (#109410) gh-109219: propagate free vars through type param scopes (GH-109377) (cherry picked from commit 909adb5092c0ae9426814742d97932204b211cfb) Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 14 September 2023, 22:42:39 UTC
52a9c57 [3.12] gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) (#109426) gh-109396: Fix test_socket.test_hmac_sha1() in FIPS mode (GH-109423) Use a longer key: FIPS mode requires at least of at least 112 bits. The previous key was only 32 bits. (cherry picked from commit e091b9f20fa8e409003af79f3c468b8225e6dcd3) Co-authored-by: Victor Stinner <vstinner@python.org> 14 September 2023, 22:41:33 UTC
3bb8075 [3.12] gh-101100: Fix sphinx warnings in `turtle.rst` (GH-109394) (#109416) gh-101100: Fix sphinx warnings in `turtle.rst` (GH-109394) (cherry picked from commit 21e80f4c1925aaafae199840f8737b5c39a82c70) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 14 September 2023, 22:41:18 UTC
3eae45f [3.12] gh-105658: fix excess trace events for except block ending with a conditional block (#109384) (#109411) gh-105658: fix excess trace events for except block ending with a conditional block (#109384) (cherry picked from commit 4a54074a0f5579d417445ec28427cd0ed5aa01f4) 14 September 2023, 22:41:03 UTC
5c7e8c3 [3.12] gh-109341: Fix crash on compiling invalid AST including TypeAlias (GH-109349) (#109381) gh-109341: Fix crash on compiling invalid AST including TypeAlias (GH-109349) (cherry picked from commit 987b4bc0870e1e29a88275dc3fa39bf2c3dcc763) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 14 September 2023, 22:40:19 UTC
36d6ba0 [3.12] gh-60283: Check for redefined test names in CI (GH-109161) (#109365) * gh-60283: Check for redefined test names in CI (GH-109161) (cherry picked from commit 3cb9a8edca6e3fa0f0045b03a9a6444cf8f7affe) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * Update exclude list for 3.12 * Explicitly exclude files which failed to lint/parse * Sort to avoid future merge conflicts --------- Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> 14 September 2023, 22:38:54 UTC
5b38bde [3.12] Fix variable name in dis documentation example (GH-109343) (#109364) Fix variable name in dis documentation example (GH-109343) BINARY_SUBSCR example erroneously uses two different names `key` and `index` to refer to the same variable. STORE_SUBSCR and DELETE_SUBSCR use only `key` in the same context. Changing `index` to `key` for consistency. (cherry picked from commit a0c06a4f933faccd7f8201701b2491d38464212c) Co-authored-by: Oleksandr Kravets <73752159+olekskrav@users.noreply.github.com> 13 September 2023, 10:37:46 UTC
47402e2 [3.12] gh-105189: fix importlib.resources.abc deprecation docs (GH-105232) (#109363) gh-105189: fix importlib.resources.abc deprecation docs (GH-105232) (cherry picked from commit 6c0ddca409c1ed27b11c70386cd6c88be5d00115) Co-authored-by: Thomas Grainger <tagrain@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 13 September 2023, 10:37:24 UTC
c30d5df [3.12] gh-104736: Fix test_gdb tests on ppc64le with clang (GH-109360) (#109361) gh-104736: Fix test_gdb tests on ppc64le with clang (GH-109360) Fix test_gdb on Python built with LLVM clang 16 on Linux ppc64le (ex: Fedora 38). Search patterns in gdb "bt" command output to detect when gdb fails to retrieve the traceback. For example, skip a test if "Backtrace stopped: frame did not save the PC" is found. (cherry picked from commit 44d9a71ea246e7c3fb478d9be62c16914be6c545) Co-authored-by: Victor Stinner <vstinner@python.org> 13 September 2023, 10:37:10 UTC
3d8e4d7 [3.12] gh-109357: Fix test_monitoring.test_gh108976() (GH-109358) (#109359) gh-109357: Fix test_monitoring.test_gh108976() (GH-109358) The test now calls free_tool_id() so it can be run multiple times in the same process. For example, the following command no longer fails: python -m test test_monitoring -R 3:3 (cherry picked from commit 388d91cd474de80355f5a8f6a26e8962813a3128) Co-authored-by: Victor Stinner <vstinner@python.org> 13 September 2023, 10:36:30 UTC
aee0077 [3.12] Update workflow permissions in require-pr-label Action (GH-109342) (#109348) Update workflow permissions in require-pr-label Action (GH-109342) Change the permission from `read` to `write`. (cherry picked from commit 44c8699196c1951037bc549c895ea5af26c7254e) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com> 13 September 2023, 10:36:03 UTC
9b82054 [3.12] GH-104395: Add a link in 'Meta Information' to the docs download page (GH-104443) (#109345) GH-104395: Add a link in 'Meta Information' to the docs download page (GH-104443) (cherry picked from commit 90cf345ed42ae4d17d2a073718985eb3432a7c20) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 13 September 2023, 10:35:42 UTC
08bd2aa [3.12] gh-109184: update traceback module doc w.r.t notes (message is no longer always at the end) (#109201) (#109334) gh-109184: update traceback module doc w.r.t notes (message is no longer always at the end) (#109201) (cherry picked from commit 0e76cc359ba5d5e29d7c75355d7c1bc7e817eecf) 13 September 2023, 10:35:26 UTC
21f4e6d [3.12] gh-109114: Relax the check for invalid lambdas inside f-strings to avoid false positives (GH-109121). (#109155) (cherry picked from commit 5bda2f637e1cfbca45a83aa6e22db25498064b27) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> 12 September 2023, 15:52:25 UTC
8208657 [3.12] gh-109118: Disallow nested scopes within PEP 695 scopes within classes (GH-109196) (#109297) gh-109118: Disallow nested scopes within PEP 695 scopes within classes (GH-109196) Fixes GH-109118. Fixes GH-109194. (cherry picked from commit b88d9e75f68f102aca45fa62e2b0e2e2ff46d810) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Carl Meyer <carl@oddbird.net> 12 September 2023, 14:31:26 UTC
778d094 [3.12] Fix iter_index() to work with lists which do not support stop=None. (gh-109306) (#109310) Fix iter_index() to work with lists which do not support stop=None. (gh-109306) (cherry picked from commit f2a55fecd063244a5fd09a38f673f0781f8802d1) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 12 September 2023, 14:23:20 UTC
7479a7a [3.12] gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) (#109304) gh-109295: Fix test_os.test_access_denied() for TEMP=cwd (GH-109299) Fix test_os.test_access_denied() when the TEMP environment variable is equal to the current working directory. Run the test using a different filename, since self.fname already exists in this case. (cherry picked from commit 7dedfd36dc16d9e1e15d7d0b0a636dd401a5a543) Co-authored-by: Victor Stinner <vstinner@python.org> 12 September 2023, 14:23:03 UTC
8acfb42 [3.12] gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH-109298) (#109301) gh-109295: Clean up multiprocessing in test_asyncio and test_compileall (GH-109298) test_asyncio and test_compileall now clean up multiprocessing by calling multiprocessing _cleanup_tests(): explicitly clean up resources and stop background processes like the resource tracker. (cherry picked from commit 09ea4b8706165fd9474165090a0ba86509abd6c8) Co-authored-by: Victor Stinner <vstinner@python.org> 12 September 2023, 14:22:43 UTC
a6ed810 [3.12] gh-109292: add symtable impact of PEP 709 to What's New (GH-109293) (#109296) gh-109292: add symtable impact of PEP 709 to What's New (GH-109293) (cherry picked from commit 2b1e2f1cd154e6df553eda7936715ea0622b4ecf) Co-authored-by: Carl Meyer <carl@oddbird.net> 12 September 2023, 14:21:08 UTC
2004e12 [3.12] gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289) (#109291) gh-109195: fix source location for super load before LOAD_SUPER_ATTR (GH-109289) (cherry picked from commit ceeb4173aee7b835f553a8286feaa48b98c16124) Co-authored-by: Carl Meyer <carl@oddbird.net> 12 September 2023, 14:20:41 UTC
8e96b98 [3.12] gh-107322: zipapp: Remove the suggestion to remove .dist-info directories (GH-107296) (#109281) gh-107322: zipapp: Remove the suggestion to remove .dist-info directories (GH-107296) Removed zipapp suggestion to rm .dist-info subdirectories. This totally breaks importlib.metadata (cherry picked from commit 1ee50e2a78f644d81d341a08562073ad169d8cc7) Co-authored-by: wim glenn <hey@wimglenn.com> 12 September 2023, 14:19:05 UTC
33ee98b [3.12] gh-90805: Make sure test_functools works with and without _functoolsmodule (GH-108644) (#109275) gh-90805: Make sure test_functools works with and without _functoolsmodule (GH-108644) (cherry picked from commit baa6dc8e388e71b2a00347143ecefb2ad3a8e53b) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 12 September 2023, 14:17:05 UTC
a8393dc [3.12] gh-109190: What's New in 3.12: Add subheadings to removals for easy linking (GH-109159) (#109273) gh-109190: What's New in 3.12: Add subheadings to removals for easy linking (GH-109159) (cherry picked from commit 57b6205523d934d61b6308d63ef72c494c7d2b7e) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> 12 September 2023, 14:16:35 UTC
5305cdc [3.12] gh-109182: Fix and improve tests for gh-108654 (GH-109189) (#109271) gh-109182: Fix and improve tests for gh-108654 (GH-109189) (cherry picked from commit c0f488b88f2a54d76256818e2841d868fecfd396) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 12 September 2023, 14:15:40 UTC
3efe7bc [3.12] GH-108976. Keep monitoring data structures valid during de-optimization during callback. (GH-109131) (#109268) GH-108976. Keep monitoring data structures valid during de-optimization during callback. (GH-109131) 12 September 2023, 14:14:49 UTC
5e917a0 [3.12] Test DocTestFinder directly instead of calling support.run_doctest() (GH-108917) (#109259) Test DocTestFinder directly instead of calling support.run_doctest() (GH-108917) (cherry picked from commit 0abc935086931d4915ea3c45cffffecb31e7a45c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 12 September 2023, 14:13:45 UTC
df64210 [3.12] gh-109230: test_pyexpat no longer depends on the current directory (GH-109233) (#109241) gh-109230: test_pyexpat no longer depends on the current directory (GH-109233) Fix test_pyexpat.test_exception(): it can now be run from a directory different than Python source code directory. Before, the test failed in this case. Skip the test if Modules/pyexpat.c source is not available. Skip also the test on Python implementations other than CPython. (cherry picked from commit e55aab95786e0e9fb36a9a1122d2d0fb3d2403cd) Co-authored-by: Victor Stinner <vstinner@python.org> 12 September 2023, 14:03:47 UTC
b361381 [3.12] gh-109237: Fix test_site for non-ASCII working directory (GH-109238) (#109239) gh-109237: Fix test_site for non-ASCII working directory (GH-109238) Fix test_site.test_underpth_basic() when the working directory contains at least one non-ASCII character: encode the "._pth" file to UTF-8 and enable the UTF-8 Mode to use UTF-8 for the child process stdout. (cherry picked from commit cbb3a6f8ada3d133c3ab9f9465b65067fce5bb42) Co-authored-by: Victor Stinner <vstinner@python.org> 12 September 2023, 14:03:18 UTC
bcd5907 [3.12] Fix "FSTRING_MIDDLE" typo in py312 "What's New" (GH-109222) (#109223) Fix "FSTRING_MIDDLE" typo in py312 "What's New" (GH-109222) (cherry picked from commit 2dd6a86c4ee604b331ed739c2508b0d0114993c6) Co-authored-by: Delgan <4193924+Delgan@users.noreply.github.com> 12 September 2023, 14:00:54 UTC
aef019b [3.12] Improve the sieve() recipe in the itertools docs (gh-109199) (#109203) Improve the sieve() recipe in the itertools docs (gh-109199) Lazier sieve (cherry picked from commit d3ed9921cdd8ac291fbfe3adf42f7730d3a14dbc) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 12 September 2023, 14:00:33 UTC
888bcf4 [3.12] Fix an ironic typo in a code comment. (gh-109186) (#109188) Fix an ironic typo in a code comment. (gh-109186) (cherry picked from commit 75cd86599bad05cb372aed9fccc3ff884cd38b70) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com> 12 September 2023, 14:00:13 UTC
acde502 [3.12] gh-109118: Fix runtime crash when NameError happens in PEP 695 function (GH-109123) (#109173) * gh-109118: Fix runtime crash when NameError happens in PEP 695 function (#109123) (cherry picked from commit 17f994174de9211b2baaff217eeb1033343230fc) * [3.12] gh-109118: Fix runtime crash when NameError happens in PEP 695 function (GH-109123). (cherry picked from commit 17f994174de9211b2baaff217eeb1033343230fc) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 12 September 2023, 13:59:09 UTC
c76f4b9 [3.12] GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (GH-109142) (#109149) GH-109067: fix randomly failing `test_async_gen_asyncio_gc_aclose_09` test (GH-109142) Use `asyncio.sleep(0)` instead of short sleeps. (cherry picked from commit ccd48623d4860e730a16f3f252d67bfea8c1e905) Co-authored-by: Kumar Aditya <kumaraditya@python.org> 12 September 2023, 13:56:02 UTC
ca848bb [3.12] gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048) (#109122) gh-109022: [Enum] require `names=()` to create empty enum type (GH-109048) add guard so that ``Enum('bar')`` raises a TypeError instead of creating a new enum class called `bar`. To create the new but empty class, use: huh = Enum('bar', names=()) (cherry picked from commit c74e440168fab9bf91346471087a394af13fa2db) Co-authored-by: Ethan Furman <ethan@stoneleaf.us> 12 September 2023, 13:53:16 UTC
d533ab1 [3.12] gh-108732: include comprehension locals in frame.f_locals (GH-109026) (#109097) gh-108732: include comprehension locals in frame.f_locals (GH-109026) (cherry picked from commit f2584eade378910b9ea18072bb1dab3dd58e23bb) Co-authored-by: Carl Meyer <carl@oddbird.net> Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> 12 September 2023, 13:50:29 UTC
af83d1e [3.12] gh-106922: Fix error location for constructs with spaces and parentheses (GH-108959) (#109147) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> 08 September 2023, 17:04:28 UTC
a1ba0e5 [3.12] gh-103186: Suppress RuntimeWarning about unclosed async iterator in test_sys_settrace (GH-109075) (#109138) gh-103186: Suppress RuntimeWarning about unclosed async iterator in test_sys_settrace (GH-109075) (cherry picked from commit d485551c9d1792ff3539eef1d6374bd4c01dcd5d) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 08 September 2023, 15:56:11 UTC
fff524e [3.12] Add version directives to ast docs (GH-108788) (#109106) Add version directives to ast docs (GH-108788) (cherry picked from commit 74fc96bc60f5c02bde50ff2f3516add99483e402) Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com> 08 September 2023, 13:25:55 UTC
68ba35e [3.12] gh-68403: Fix test_coverage in test_trace (GH-108910) (#109104) gh-68403: Fix test_coverage in test_trace (GH-108910) Its behavior no longer affected by test running options such as -m. (cherry picked from commit 7e1a7abb9831965cdec477e62dbe4f8415b8a582) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 08 September 2023, 13:25:18 UTC
41ff5b0 [3.12] gh-75743: Restore test_timeout.testConnectTimeout() (GH-109087) (#109103) gh-75743: Restore test_timeout.testConnectTimeout() (GH-109087) This un-skips this test now that pythontest.net implements appropriate firewall rules for it. (cherry picked from commit 1829a3c9a3712b6a68a3a449e4a08787c73da51d) Co-authored-by: Ee Durbin <ewdurbin@gmail.com> 08 September 2023, 13:24:55 UTC
b27ca96 [3.12] gh-107924: re-order os.sendfile() flag documentation (GH-107926) (#109099) gh-107924: re-order os.sendfile() flag documentation (GH-107926) (cherry picked from commit 403ab1306a6e9860197bce57eadcb83418966f21) Co-authored-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:24:18 UTC
4cb29bb [3.12] gh-102823: Document return type of floor division on floats (GH-102824) (#109092) gh-102823: Document return type of floor division on floats (GH-102824) (cherry picked from commit b72251de930c8ec6893f1b3f6fdf1640cc17dfed) Co-authored-by: Mark Dickinson <dickinsm@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:23:41 UTC
2ce2612 [3.12] socket documentation fix - rename triple to 3-tuple (GH-24722) (#109073) socket documentation fix - rename triple to 3-tuple (GH-24722) (cherry picked from commit 6b15ff52351787644115a4dd9d5d6717d66b9806) Co-authored-by: Ori Hoch <ori@uumpa.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:23:12 UTC
82f5291 [3.12] gh-71770: Add more details on behavior of configparser's default_section (GH-31562) (#109088) gh-71770: Add more details on behavior of configparser's default_section (GH-31562) (cherry picked from commit 891236f48263e2d4c650b7a127fc9bffb8327807) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:22:33 UTC
02e51f8 [3.12] gh-103186: Remove debug print in test_sys_settrace (GH-109077) (#109084) gh-103186: Remove debug print in test_sys_settrace (GH-109077) (cherry picked from commit e4bb0026b9a21d066e7a5c4716ea4d755b95d2d5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 08 September 2023, 13:22:19 UTC
26f42b3 [3.12] GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357) (#109082) GH-90915: Document that SystemExit doesn't trigger sys.excepthook (GH-31357) (cherry picked from commit 1294fcede09af6c781553b7a3a6ff612c7dfa431) Co-authored-by: Colin Watson <cjwatson@debian.org> Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:22:08 UTC
736c413 [3.12] bpo-38157: Add example about per file output for mock_open. (GH-16090) (#109071) bpo-38157: Add example about per file output for mock_open. (GH-16090) (cherry picked from commit e183a71eef1ec3ac86bb4d81a158c21d6f1a783b) Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com> Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:21:51 UTC
29404b6 [3.12] gh-103186: Suppress and assert expected RuntimeWarnings in test_sys_settrace (GH-103244) (#109066) gh-103186: Suppress and assert expected RuntimeWarnings in test_sys_settrace (GH-103244) Caused as a result of frame manipulation where locals are never assigned / initialised. (cherry picked from commit 3e53ac99038920550358c1ea0212c3907a8cb385) Co-authored-by: Ijtaba Hussain <ijtabahussain@live.com> 08 September 2023, 13:21:38 UTC
8c9f5f7 [3.12] test.pythoninfo logs freedesktop_os_release() (GH-109057) (#109064) test.pythoninfo logs freedesktop_os_release() (GH-109057) (cherry picked from commit babdced23fc299b7607ac76abfdd7a81050f8359) Co-authored-by: Victor Stinner <vstinner@python.org> 08 September 2023, 13:20:05 UTC
2979cee [3.12] gh-108915: Removes extra backslashes in str.split docstring (GH-109044). (#109061) * [3.12] gh-108915: Removes extra backslashes in str.split docstring (GH-109044). (cherry picked from commit e7d5433f944a5725aa82595f9251abfc8a63d333) Co-authored-by: Daniel Weiss <134341009+justdan6@users.noreply.github.com> * re-clinic --------- Co-authored-by: Daniel Weiss <134341009+justdan6@users.noreply.github.com> 08 September 2023, 13:19:38 UTC
de0202e [3.12] gh-108740: Fix "make regen-all" race condition (#108741) (#109019) gh-108740: Fix "make regen-all" race condition (#108741) Fix a race condition in "make regen-all". The deepfreeze.c source and files generated by Argument Clinic are now generated or updated before generating "global objects". Previously, some identifiers may miss depending on the order in which these files were generated. * "make regen-global-objects": Make sure that deepfreeze.c is generated and up to date, and always run "make clinic". * "make clinic" no longer runs generate_global_objects.py script. * "make regen-deepfreeze" now only updates deepfreeze.c (C file). It doesn't build deepfreeze.o (object) anymore. * Remove misleading messages in "make regen-global-objects" and "make clinic". They are now outdated, these commands are now safe to use. * Document generates files in Doc/using/configure.rst. Co-authored-by: Erlend E. Aasland <erlend@python.org> (cherry picked from commit db1ee6a19ab62191c16ecb732cb4dcaede98a902) 08 September 2023, 13:19:20 UTC
55d7e8f [3.12] gh-108851: Fix tomllib recursion tests (GH-108853) (#109012) gh-108851: Fix tomllib recursion tests (GH-108853) * Add get_recursion_available() and get_recursion_depth() functions to the test.support module. * Change infinite_recursion() default max_depth from 75 to 100. * Fix test_tomllib recursion tests for WASI buildbots: reduce the recursion limit and compute the maximum nested array/dict depending on the current available recursion limit. * test.pythoninfo logs sys.getrecursionlimit(). * Enhance test_sys tests on sys.getrecursionlimit() and sys.setrecursionlimit(). (cherry picked from commit 8ff11425783806f8cb78e99f667546b1f7f3428e) Co-authored-by: Victor Stinner <vstinner@python.org> 08 September 2023, 13:18:02 UTC
038b0a9 [3.12] gh-89392: Use unittest test runner for doctests in test_getopt (GH-108916) (#108919) gh-89392: Use unittest test runner for doctests in test_getopt (GH-108916) (cherry picked from commit f980cc19b9cafc09ef21e906871f810a1c89e62f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 08 September 2023, 13:17:14 UTC
da02508 [3.12] gh-89392: Use normal unittest runner in test_type_cache (GH-108911) (#108913) gh-89392: Use normal unittest runner in test_type_cache (GH-108911) (cherry picked from commit eaabaac7c099884f92428a7bb04ffa1f1d6080dd) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 08 September 2023, 13:16:55 UTC
4b749ba [3.12] gh-91960: Skip test_gdb if gdb cannot retrive Python frames (GH-108999) (#109010) gh-91960: Skip test_gdb if gdb cannot retrive Python frames (GH-108999) Skip test_gdb if gdb is unable to retrieve Python frame objects: if a frame is "<optimized out>". When Python is built with "clang -Og", gdb can fail to retrive the 'frame' parameter of _PyEval_EvalFrameDefault(). In this case, tests like py_bt() are likely to fail. Without getting access to Python frames, python-gdb.py is mostly clueless on retrieving the Python traceback. Moreover, test_gdb is no longer skipped on macOS if Python is built with Clang. (cherry picked from commit fbce43a251488f666be9794c908a6613bf8ae260) Co-authored-by: Victor Stinner <vstinner@python.org> 08 September 2023, 13:16:16 UTC
9441005 [3.12] gh-108983: Add more PEP 526 tests to `test_grammar` (GH-108984) (#109000) gh-108983: Add more PEP 526 tests to `test_grammar` (GH-108984) (cherry picked from commit 1fb20d42c58924e2e941622b3539645c7b843e0e) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 08 September 2023, 13:16:02 UTC
b9dfe60 [3.12] gh-108962: Skip test_tempfile.test_flags() if not supported (GH-108964) (#108967) gh-108962: Skip test_tempfile.test_flags() if not supported (GH-108964) Skip test_tempfile.test_flags() if chflags() fails with "OSError: [Errno 45] Operation not supported" (ex: on FreeBSD 13). (cherry picked from commit cd2ef21b076b494224985e266c5f5f8b37c66618) Co-authored-by: Victor Stinner <vstinner@python.org> 08 September 2023, 13:14:57 UTC
0855b2c [3.12] gh-108834: Sync libregrtest with the main branch (#108966) * gh-108834: regrtest reruns failed tests in subprocesses (#108839) When using --rerun option, regrtest now re-runs failed tests in verbose mode in fresh worker processes to have more deterministic behavior. So it can write its final report even if a test killed a worker progress. Add --fail-rerun option to regrtest: exit with non-zero exit code if a test failed pass passed when re-run in verbose mode (in a fresh process). That's now more useful since tests can pass when re-run in a fresh worker progress, whereas they failed when run after other tests when tests are run sequentially. Rename --verbose2 option (-w) to --rerun. Keep --verbose2 as a deprecated alias. Changes: * Fix and enhance statistics in regrtest summary. Add "(filtered)" when --match and/or --ignore options are used. * Add RunTests class. * Add TestResult.get_rerun_match_tests() method * Rewrite code to serialize/deserialize worker arguments as JSON using a new WorkerJob class. * Fix stats when a test is run with --forever --rerun. * If failed test names cannot be parsed, log a warning and don't filter tests. * test_regrtest.test_rerun_success() now uses a marker file, since the test is re-run in a separated process. * Add tests on normalize_test_name() function. * Add test_success() and test_skip() tests to test_regrtest. (cherry picked from commit 31c2945f143c6b80c837fcf09a5cfb85fea9ea4c) * gh-108834: regrtest --fail-rerun exits with code 5 (#108896) When the --fail-rerun option is used and a test fails and then pass, regrtest now uses exit code 5 ("rerun) instead of 2 ("bad test"). (cherry picked from commit 1170d5a292b46f754cd29c245a040f1602f70301) * gh-108416: Mark slow but not CPU bound test methods with requires_resource('walltime') (GH-108480) (cherry picked from commit 1e0d62793a84001e92f1c80b511d3a212b435acc) * Manually sync Lib/test/libregrtest/ from main --------- Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 08 September 2023, 13:14:17 UTC
eeaae92 [3.12] gh-107755: Document the correct default value of slice step (GH-107756) (#108955) gh-107755: Document the correct default value of slice step (GH-107756) Document the correct default value of slice step. (cherry picked from commit 9bf350b0662fcf1a8b43b9293e6c8ecf3c711561) Co-authored-by: wim glenn <hey@wimglenn.com> 08 September 2023, 13:13:31 UTC
5ca2a68 [3.12] gh-107732: Mention dir support in importlib.resources docs (GH-107734) (#109058) gh-107732: Mention dir support in importlib.resources docs (#107734) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> (cherry picked from commit 9f0c0a46f00d687e921990ee83894b2f4ce8a6e7) Co-authored-by: Shahriar Heidrich <smheidrich@weltenfunktion.de> 08 September 2023, 13:12:48 UTC
c9dc2bc [3.12] gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016) (#109041) gh-109015: Add test.support.socket_helper.tcp_blackhole() (GH-109016) Skip test_asyncio, test_imaplib and test_socket tests if FreeBSD TCP blackhole is enabled (net.inet.tcp.blackhole=2). (cherry picked from commit a52a3509770f29f940cda9307704908949912276) Co-authored-by: Victor Stinner <vstinner@python.org> 08 September 2023, 13:12:29 UTC
579d782 [3.12] Docs: Fix typo in datetime.tzinfo docstring (GH-107257) (#109032) Docs: Fix typo in datetime.tzinfo docstring (GH-107257) (cherry picked from commit 60a9eea3f56c002356998f5532b3ad870a1ffa8e) Co-authored-by: Mikhail Samylov <Samylov-Mikhail@yandex.com> Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:11:32 UTC
ef0dbfb [3.12] GH-108202: Document ``calendar``'s command-line interface (GH-109020) (#109030) GH-108202: Document ``calendar``'s command-line interface (GH-109020) (cherry picked from commit f0f96a9f40762499811681d405b6f922b6ed7a55) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:11:16 UTC
19d8226 [3.12] GH-90690: Mention removal of ``PRECALL`` in What's New (GH-103910) (#109027) GH-90690: Mention removal of ``PRECALL`` in What's New (GH-103910) (cherry picked from commit f9bd6e49ae58e0ba2934f29dd0f3299ba844cc8d) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 08 September 2023, 13:10:18 UTC
e65401d [3.12] C API tests: use special markers to test that output parameters were set (GH-109014) (#109023) [3.12] C API tests: use special markers to test that output parameters were set (GH-109014). (cherry picked from commit bf414b7fcb7c8ba780a5e1d9f320ecef0c7f9488) 08 September 2023, 13:09:49 UTC
db55cfc [3.12] gh-109002: Ensure only one wheel for each vendored package (GH-109003) (#109005) Output with one wheel: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py Verifying checksum for /Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl. Expected digest: 7ccf472345f20d35bdc9d1841ff5f313260c2c33fe417f48c30ac46cccabf5be Actual digest: 7ccf472345f20d35bdc9d1841ff5f313260c2c33fe417f48c30ac46cccabf5be ::notice file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl::Successfully verified the checksum of the pip wheel. ``` Output with two wheels: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py ::error file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-22.0.4-py3-none-any.whl::Found more than one wheel for package pip. ::error file=/Volumes/RAMDisk/cpython/Lib/ensurepip/_bundled/pip-23.2.1-py3-none-any.whl::Found more than one wheel for package pip. ``` Output without wheels: ``` ❯ GITHUB_ACTIONS=true ./Tools/build/verify_ensurepip_wheels.py ::error file=::Could not find a pip wheel on disk. ``` (cherry picked from commit f8a047941f2e4a1848700c21d58a08c9ec6a9c68) Co-authored-by: Łukasz Langa <lukasz@langa.pl> 06 September 2023, 18:01:36 UTC
ce37095 Merge branch '3.12' of https://github.com/python/cpython into 3.12 06 September 2023, 10:28:46 UTC
8c76555 Post 3.12.0rc2 06 September 2023, 10:27:54 UTC
d7869ec [3.12] gh-108857: improve markup in inspect.Signature.replace() docs (GH-108862) (#108971) gh-108857: improve markup in inspect.Signature.replace() docs (GH-108862) (cherry picked from commit 6f8411cfd68134ccae01b0b4cb332578008a69e3) Co-authored-by: nabin2004 <107109731+nabin2004@users.noreply.github.com> 06 September 2023, 00:39:21 UTC
40913a5 Python 3.12.0rc2 05 September 2023, 21:57:19 UTC
495ba70 [3.12] gh-108469: Update ast.unparse for unescaped quote support from PEP701 [3.12] (GH-108553) (#108960) Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com> Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> 05 September 2023, 20:49:55 UTC
460043b [3.12] gh-108927: Fix test_import + test_importlib + test_unittest problem (GH-108929) (#108954) gh-108927: Fix test_import + test_importlib + test_unittest problem (GH-108929) (cherry picked from commit 3f89b257639dd817a32079da2ae2c4436b8e82eb) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 05 September 2023, 20:43:47 UTC
3d0827e [3.12] gh-107565: Update Windows build to use OpenSSL 3.0.10 (GH-108928) (#108930) gh-107565: Update Windows build to use OpenSSL 3.0.10 (GH-108928) (cherry picked from commit deea7c82682848b2a0db971a4dcc3a32c73a9f8c) Co-authored-by: Zachary Ware <zach@python.org> 05 September 2023, 18:19:06 UTC
578b3ea [3.12] GH-103082: Document PEP-669: Low Impact Monitoring for CPython (GH-107772) (#108909) GH-103082: Document PEP-669: Low Impact Monitoring for CPython (GH-107772) (cherry picked from commit 8b515f60ee1dec65cb3d64f1cc1d4b32aa2f4184) Co-authored-by: Mark Shannon <mark@hotpy.org> 05 September 2023, 13:07:11 UTC
7ee021f [3.12] GH-108390: Prevent non-local events being set with `sys.monitoring.set_local_events()` (GH-108420) (#108899) * GH-108390: Prevent non-local events being set with `sys.monitoring.set_local_events()` (GH-108420) * Restore generated objects * Restore size of monitoring arrays in code object for 3.12 ABI compatibility. * Update ABI file 05 September 2023, 11:29:38 UTC
5121faa [3.12] gh-89392: Remove support of test_main() in libregrtest (GH-108876) (#108897) [3.12] gh-89392: Remove support of test_main() in libregrtest (GH-108876). (cherry picked from commit 04a0830b00879efe057e3dfe75e9aa9c0caf1a26) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> 05 September 2023, 11:18:41 UTC
8c551a7 [3.12] Link to PEP sections in What's New in 3.12 (GH-108878) (#108890) Link to PEP sections in What's New in 3.12 (GH-108878) (cherry picked from commit 7855d325e638a4b7f7b40f2c35dc80de82d8fe70) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 05 September 2023, 10:52:36 UTC
e76b0b7 [3.12] bpo-45229: Make ElementTree tests discoverable (GH-108859) (#108873) [3.12] bpo-45229: Make ElementTree tests discoverable (GH-108859). (cherry picked from commit 074ac1f72e392a576516639f650bac0519d1cb52) 05 September 2023, 10:51:37 UTC
9c1428c [3.12] CI: Bump GitHub Actions (GH-108879) (#108889) CI: Bump GitHub Actions (GH-108879) (cherry picked from commit 572678e1f864cb042df6962848a436d84ef7a8a4) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 05 September 2023, 10:50:44 UTC
88ff02e [3.12] gh-89392: Remove test_main() in test_netrc (GH-108860) (#108872) [3.12] gh-89392: Remove test_main() in test_netrc (GH-108860). (cherry picked from commit 76f3c043b6c5971d5a13fc6decf87a80ddf7ef95) Co-authored-by: T. Wouters <thomas@python.org> 04 September 2023, 19:13:02 UTC
bce7791 [3.12] Disable `differing_test_runners` health check (GH-108886) (#108887) Disable `differing_test_runners` health check (GH-108886) (cherry picked from commit 6ead5bd6ae20b902e6c11a3c0acede22632dc0d5) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> 04 September 2023, 19:11:16 UTC
d5c2d45 [3.12] gh-89392: Make test_pep646_syntax discoverable (GH-108861) (#108871) * [3.12] gh-89392: Make test_pep646_syntax discoverable (GH-108861). (cherry picked from commit d0b22f6bd84239e50b43709f98f2bb950222cfe5) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> * Add "import unittest". 04 September 2023, 16:41:42 UTC
331b026 [3.12] Resolve reference warnings in faq/gui.rst (GH-108147) (#108193) * Resolve reference warnings in faq/gui.rst (GH-108147) (cherry picked from commit 8f3d09bf5d16b508fece5420a22abe6f0c1f00b7) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> * Resolve reference warnings in faq/gui.rst --------- Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> 04 September 2023, 16:40:59 UTC
e0f6080 [3.12] gh-46376: Revert "Return existing pointer when possible in ctypes (GH-107131) (GH-107487)" (#108864) This reverts commit 54aaaadef8a44324f6be674707c67a3516470ff6. Co-authored-by: T. Wouters <thomas@python.org> 04 September 2023, 14:24:16 UTC
7b936ac [3.12] Reorder some test's decorators (GH-108804) (#108844) Reorder some test's decorators (GH-108804) For example, do not demand the 'cpu' resource if the test cannot be run due to non-working threads. (cherry picked from commit 509bb61977cc8a4487efd3f9cdd63d9f7b86be62) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> 04 September 2023, 11:47:07 UTC
back to top