Commit graph

117871 commits

Author SHA1 Message Date
Miss Islington (bot)
388f90a673
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 684 (GH-109657) (#109729)
GH-109190: Copyedit 3.12 What's New: PEP 684 (GH-109657)
(cherry picked from commit e94a2232ea)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:29:36 +02:00
Miss Islington (bot)
5030d386f8
[3.12] GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) (GH-109665) (#109728)
GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) (GH-109665)
(cherry picked from commit d9415f6a45)


bytecode: suppress reference to removed LOAD_METHOD

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:29:16 +02:00
Hugo van Kemenade
c03ed79f22
[3.12] gh-106967: remove Release and Date fields from whatsnew for 3.12 (#109648)
fix: remove Release and Date fields from whatsnew

python/release-tools template for "What's New" page automatically adds
a "Release" field and a "Date" field with the date set to "today", which
becomes the day the docs are built, which is forever increasing. This is
the topic of https://github.com/python/release-tools/issues/34 which is
yet to be fixed. In the meantime, this commit fixes it manually.

Co-authored-by: Oliver Rew <orew@bloomberg.net>
2023-09-22 15:28:02 +02:00
Irit Katriel
107e14820a
[3.12] gh-109627: duplicated small exit blocks need to be assigned jump target labels (#109630) (#109632)
gh-109627: duplicated smalll exit blocks need to be assigned jump target labels (#109630)

(cherry picked from commit 9ccf0545ef)
2023-09-22 15:27:29 +02:00
Miss Islington (bot)
92a347997f
[3.12] gh-109408: Move Windows builds from Azure Pipelines PR to GitHub Actions (GH-109569) (#109623)
gh-109408: Move Windows builds from Azure Pipelines PR to GitHub Actions (GH-109569)
(cherry picked from commit 14cdefa667)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-22 15:26:58 +02:00
Miss Islington (bot)
5796d69b00
[3.12] GH-109190: Copyedit 3.12 What's New: Consistently show module names (GH-109664) (#109713)
(cherry picked from commit 291401389b)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2023-09-22 15:21:52 +02:00
Hugo van Kemenade
b7801d7d1f
[3.12] GH-109190: Copyedit 3.12 What's New: calendar (GH-109662) (#109716)
(cherry picked from commit 34ddcc3fa1)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:02:27 +02:00
Miss Islington (bot)
0100ce5deb
[3.12] GH-109190: Copyedit 3.12 What's New: tokenize (GH-109663) (#109715)
(cherry picked from commit d3fe1a902f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 15:02:03 +02:00
Miss Islington (bot)
0030c80a5a
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 701 (GH-109655) (#109689)
(cherry picked from commit e47d12e222)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:59:52 +02:00
Miss Islington (bot)
5f685ed783
[3.12] GH-109190: Copyedit 3.12 What's New: Improved Error Messages (GH-109654) (#109687)
(cherry picked from commit 16c24023c1)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:58:04 +02:00
Miss Islington (bot)
92f2e33ebc
[3.12] GH-109190: Copyedit 3.12 What's New: Typing PEPs (GH-109659) (#109684)
(cherry picked from commit 11636788da)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:57:22 +02:00
Miss Islington (bot)
6c8cbb3a7c
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 709 (GH-109656) (#109681)
(cherry picked from commit 22b70ca480)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:56:18 +02:00
Miss Islington (bot)
0015a9aad5
[3.12] Misc itertool recipe improvements, mostly docstrings and comments (gh-109555) (#109572)
(cherry picked from commit f2636d2c45)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2023-09-22 14:43:40 +02:00
Miss Islington (bot)
9e4ac21c46
[3.12] GH-109209: Bump the minimum Sphinx version to 4.2 (GH-109210) (#109636)
GH-109209: Bump the minimum Sphinx version to 4.2 (GH-109210)
(cherry picked from commit 712cb173f8)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2023-09-22 14:30:57 +02:00
Thomas Wouters
4a0c118d6a Post 3.12.0rc3 2023-09-19 13:02:42 +02:00
Thomas Wouters
b973ab3c3b Python 3.12.0rc3 2023-09-18 21:48:09 +02:00
Miss Islington (bot)
74a7f5d2da
[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 0bb0d88e2d)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-18 17:39:27 +00:00
Miss Islington (bot)
0620bc7f78
[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 dd5d2141ab)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-18 17:51:23 +02:00
Miss Islington (bot)
9412a874a7
[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 412f5e85d6)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
2023-09-18 17:40:51 +02:00
Miss Islington (bot)
2401b980da
[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 23f9f6f464)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
2023-09-18 14:44:13 +00:00
Miss Islington (bot)
f6fc831aa9
[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 4849a80dd1)

Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
2023-09-18 14:31:01 +00:00
Miss Islington (bot)
fbf703ce6e
[3.12] Fix extraneous backslashes in hashlib docs (GH-109468) (#109530)
Fix extraneous backslashes in hashlib docs (GH-109468)
(cherry picked from commit ce5b3e19e6)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2023-09-18 12:29:19 +02:00
Miss Islington (bot)
5c439fbd30
[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 a75daed7e0)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-18 01:22:15 +02:00
Miss Islington (bot)
cc12f6684e
[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 929cc4e4a0)

Co-authored-by: AlberLC <37489786+AlberLC@users.noreply.github.com>
2023-09-17 22:50:37 +02:00
Miss Islington (bot)
655287996e
[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 a6846d45ff)

Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-17 22:50:12 +02:00
Miss Islington (bot)
02df0df97c
[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 0b38ce440b)

Co-authored-by: partev <petrosyan@gmail.com>
2023-09-17 22:50:00 +02:00
Gregory P. Smith
52bbb224ba
[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.
2023-09-17 22:49:42 +02:00
Miss Islington (bot)
e9a90523c9
[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 b434dd7e36)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-15 16:11:17 +02:00
Miss Islington (bot)
316f0ee874
[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 1ece084be3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-09-15 13:23:08 +02:00
Miss Islington (bot)
dba95c546b
[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 fa493900fb)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-15 11:32:05 +02:00
Miss Islington (bot)
35c633d245
[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 909adb5092)

Co-authored-by: Carl Meyer <carl@oddbird.net>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-09-15 00:42:39 +02:00
Miss Islington (bot)
52a9c5760c
[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 e091b9f20f)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-15 00:41:33 +02:00
Miss Islington (bot)
3bb8075bcb
[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 21e80f4c19)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-09-15 00:41:18 +02:00
Irit Katriel
3eae45f94d
[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 4a54074a0f)
2023-09-15 00:41:03 +02:00
Miss Islington (bot)
5c7e8c3b72
[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 987b4bc087)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-09-15 00:40:19 +02:00
Miss Islington (bot)
36d6ba08d0
[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 3cb9a8edca)

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>
2023-09-15 00:38:54 +02:00
Miss Islington (bot)
5b38bdeaf1
[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 a0c06a4f93)

Co-authored-by: Oleksandr Kravets <73752159+olekskrav@users.noreply.github.com>
2023-09-13 12:37:46 +02:00
Miss Islington (bot)
47402e235d
[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 6c0ddca409)

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>
2023-09-13 12:37:24 +02:00
Miss Islington (bot)
c30d5df74c
[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 44d9a71ea2)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-13 12:37:10 +02:00
Miss Islington (bot)
3d8e4d7d0c
[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 388d91cd47)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-13 12:36:30 +02:00
Miss Islington (bot)
aee0077e7b
[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 44c8699196)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
2023-09-13 12:36:03 +02:00
Miss Islington (bot)
9b8205447f
[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 90cf345ed4)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2023-09-13 12:35:42 +02:00
Irit Katriel
08bd2aa793
[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 0e76cc359b)
2023-09-13 12:35:26 +02:00
Pablo Galindo Salgado
21f4e6d6cb
[3.12] gh-109114: Relax the check for invalid lambdas inside f-strings to avoid false positives (GH-109121). (#109155)
(cherry picked from commit 5bda2f637e)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
2023-09-12 15:52:25 +00:00
Miss Islington (bot)
8208657f3d
[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 b88d9e75f6)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Carl Meyer <carl@oddbird.net>
2023-09-12 16:31:26 +02:00
Miss Islington (bot)
778d094126
[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 f2a55fecd0)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2023-09-12 16:23:20 +02:00
Miss Islington (bot)
7479a7aca2
[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 7dedfd36dc)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-12 16:23:03 +02:00
Miss Islington (bot)
8acfb42ea3
[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 09ea4b8706)

Co-authored-by: Victor Stinner <vstinner@python.org>
2023-09-12 16:22:43 +02:00
Miss Islington (bot)
a6ed8106e2
[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 2b1e2f1cd1)

Co-authored-by: Carl Meyer <carl@oddbird.net>
2023-09-12 16:21:08 +02:00
Miss Islington (bot)
2004e12d8d
[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 ceeb4173ae)

Co-authored-by: Carl Meyer <carl@oddbird.net>
2023-09-12 16:20:41 +02:00