]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.12] gh-109625: Move _ready_to_import() from test_import to support.import_helper...
Miss Islington (bot) [Mon, 2 Oct 2023 15:35:03 +0000 (08:35 -0700)] 
[3.12] gh-109625: Move _ready_to_import() from test_import to support.import_helper (GH-109626) (#109640)

gh-109625: Move _ready_to_import() from test_import to support.import_helper (GH-109626)
(cherry picked from commit 115c49ad5a5ccfb628fef3ae06a566f7a0197f97)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109833: Fix asyncio test_wait_for() (GH-109834) (#109837)
Miss Islington (bot) [Mon, 2 Oct 2023 15:24:51 +0000 (08:24 -0700)] 
[3.12] gh-109833: Fix asyncio test_wait_for() (GH-109834) (#109837)

gh-109833: Fix asyncio test_wait_for() (GH-109834)

Expect the test to be "short" but don't measure the exact performance
of the CI. SHORT_TIMEOUT is about 30 seconds whereas the cancelled
coroutine takes around 1 hour.
(cherry picked from commit f29bc9c9a0a6794c6b8a9e84a7ba9237b427a10a)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-105829: Fix concurrent.futures.ProcessPoolExecutor deadlock (GH-108513...
elfstrom [Mon, 2 Oct 2023 15:24:19 +0000 (17:24 +0200)] 
[3.12] gh-105829: Fix concurrent.futures.ProcessPoolExecutor deadlock (GH-108513) (#109784)

This fixes issue GH-105829, https://github.com/python/cpython/issues/105829
(cherry picked from commit 405b06375a8a4cdb08ff53afade09a8b66ec23d5)

2 years ago[3.12] gh-109521: Fix obscure cases handling in PyImport_GetImporter() (GH-109522...
Miss Islington (bot) [Mon, 2 Oct 2023 15:22:40 +0000 (08:22 -0700)] 
[3.12] gh-109521: Fix obscure cases handling in PyImport_GetImporter() (GH-109522) (#109777)

gh-109521: Fix obscure cases handling in PyImport_GetImporter() (GH-109522)

PyImport_GetImporter() now sets RuntimeError if it fails to get sys.path_hooks
or sys.path_importer_cache or they are not list and dict correspondingly.

Previously it could return NULL without setting error in obscure cases,
crash or raise SystemError if these attributes have wrong type.
(cherry picked from commit 62c7015e89cbdedb5218d4fedd45f971885f67a8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-109706: Fix multiprocessing test_nested_startmethod() (GH-109707) (#109762)
Miss Islington (bot) [Mon, 2 Oct 2023 15:22:16 +0000 (08:22 -0700)] 
[3.12] gh-109706: Fix multiprocessing test_nested_startmethod() (GH-109707) (#109762)

gh-109706: Fix multiprocessing test_nested_startmethod() (GH-109707)

Don't check order, queue items can be written in any order.
(cherry picked from commit b03a791497ff4b3c42805e06c73d08ac34087402)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109596: Ensure repeated rules in the grammar are not allowed and fix incorr...
Pablo Galindo Salgado [Mon, 2 Oct 2023 15:22:07 +0000 (16:22 +0100)] 
[3.12] gh-109596: Ensure repeated rules in the grammar are not allowed and fix incorrect soft keywords (GH-109606). (#109752)

(cherry picked from commit b28ffaa193efc66f46ab90d383279174a11a11d7)

2 years ago[3.12] gh-109709: Fix asyncio test_stdin_broken_pipe() (GH-109710) (#109731)
Miss Islington (bot) [Mon, 2 Oct 2023 15:21:51 +0000 (08:21 -0700)] 
[3.12] gh-109709: Fix asyncio test_stdin_broken_pipe() (GH-109710) (#109731)

gh-109709: Fix asyncio test_stdin_broken_pipe() (GH-109710)

Replace harcoded sleep of 500 ms with synchronization using a pipe.

Fix also Process._feed_stdin(): catch also BrokenPipeError on
stdin.write(input), not only on stdin.drain().
(cherry picked from commit cbbdf2c1440c804adcfc32ea0470865b3b3b8eb2)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-106584: Fix exit code for unittest in Python 3.12 (GH-106588) (#109725)
Miss Islington (bot) [Mon, 2 Oct 2023 15:18:41 +0000 (08:18 -0700)] 
[3.12] gh-106584: Fix exit code for unittest in Python 3.12 (GH-106588) (#109725)

gh-106584: Fix exit code for unittest in Python 3.12 (GH-106588)
(cherry picked from commit 8fc071345b50dd3de61ebeeaa287ccef21d061b2)

Co-authored-by: EliseevEgor <egor.eliseev@jetbrains.com>
Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-108948: Skip test_tarfile.test_modes() on EFTYPE error (#109697) (#109698)
Victor Stinner [Mon, 2 Oct 2023 15:16:25 +0000 (17:16 +0200)] 
[3.12] gh-108948: Skip test_tarfile.test_modes() on EFTYPE error (#109697) (#109698)

gh-108948: Skip test_tarfile.test_modes() on EFTYPE error (#109697)

On FreeBSD, regular users cannot set the sticky bit. Skip the test if
chmod() fails with EFTYPE error.

(cherry picked from commit 26e06ad617bb416201c769fea91cd33d544c6a1c)

2 years ago[3.12] gh-109582: test_fork_signal_handling should wait for event (GH-109605) (#109695)
Miss Islington (bot) [Mon, 2 Oct 2023 15:14:30 +0000 (08:14 -0700)] 
[3.12] gh-109582: test_fork_signal_handling should wait for event (GH-109605) (#109695)

gh-109582: test_fork_signal_handling should wait for event (GH-109605)

Sometimes the child_handled event was missing because either
the child quits before it gets a chance to handle the signal,
or the parent asserts before the event notification is
delivered via IPC.  Synchronize explicitly to avoid this.
(cherry picked from commit 608c1f3083ea1e06d383ef1a9878a9758903de4b)

Co-authored-by: Davide Rizzo <sorcio@gmail.com>
2 years ago[3.12] gh-108303: Move `test_future` into its own test_future_stmt subdir (#109368...
Victor Stinner [Mon, 2 Oct 2023 15:12:54 +0000 (17:12 +0200)] 
[3.12] gh-108303: Move `test_future` into its own test_future_stmt subdir (#109368) (#109679)

gh-108303: Move `test_future` into its own test_future_stmt subdir (#109368)

(cherry picked from commit 82505dc351b2f7e37aa395218709b432d83292cd)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265...
Victor Stinner [Mon, 2 Oct 2023 15:11:24 +0000 (17:11 +0200)] 
[3.12] gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) (#109677)

* gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265)

(cherry picked from commit 1110c5bc828218086f6397ec05a9312fb73ea30a)

* gh-108303: Add `Lib/test/tokenizedata` to `TESTSUBDIRS` (#109314)

(cherry picked from commit 42ab2cbd7b5e76e919b70883ae683e789dbd913d)

---------

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-108303: Create Lib/test/test_dataclasses/ directory (GH-108978) (#109674)
Miss Islington (bot) [Mon, 2 Oct 2023 15:11:03 +0000 (08:11 -0700)] 
[3.12] gh-108303: Create Lib/test/test_dataclasses/ directory (GH-108978) (#109674)

* gh-108303: Create Lib/test/test_dataclasses/ directory (GH-108978)

Move test_dataclasses.py and its "dataclass_*.py" modules into the
new Lib/test/test_dataclasses/ subdirectory.
(cherry picked from commit 14d6e197cc56e5256d501839a4e66e3864ab15f0)

Co-authored-by: Victor Stinner <vstinner@python.org>
* Fix Lint job: update Lib/test/.ruff.toml

---------

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-108303: Move `ann_module*.py` files to `typinganndata/` folder (GH-108354...
Miss Islington (bot) [Mon, 2 Oct 2023 15:10:33 +0000 (08:10 -0700)] 
[3.12] gh-108303: Move `ann_module*.py` files to `typinganndata/` folder (GH-108354) (#109672)

gh-108303: Move `ann_module*.py` files to `typinganndata/` folder (GH-108354)
(cherry picked from commit 3f61cf646d0506baa0c0c2118f05110446519c62)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-108303: Remove unused Lib/test/sgml_input.html (GH-108305) (#109671)
Miss Islington (bot) [Mon, 2 Oct 2023 15:10:04 +0000 (08:10 -0700)] 
[3.12] gh-108303: Remove unused Lib/test/sgml_input.html (GH-108305) (#109671)

gh-108303: Remove unused Lib/test/sgml_input.html (GH-108305)

In Python 2.7, the file was used by Lib/test/test_sgmllib.py to test
Lib/sgmllib.py. The sgmllib module and its tests have been removed in
Python 3.0.
(cherry picked from commit d2879f2095abd5c8186c7f69c964a341c2053572)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109613: _pystat_fromstructstat() checks for exceptions (GH-109618) (#109641)
Miss Islington (bot) [Mon, 2 Oct 2023 15:09:45 +0000 (08:09 -0700)] 
[3.12] gh-109613: _pystat_fromstructstat() checks for exceptions (GH-109618) (#109641)

gh-109613: _pystat_fromstructstat() checks for exceptions (GH-109618)

Fix os.stat() and os.DirEntry.stat(): check for exceptions.
Previously, on Python built in debug mode, these functions could
trigger a fatal Python error (and abort the process) when a function
succeeded with an exception set.

_pystat_fromstructstat() now exits immediately if an exception is
raised, rather only checking for exceptions at the end. It fix
following fatal error in fill_time():

    Fatal Python error: _Py_CheckSlotResult:
    Slot * of type int succeeded with an exception set
(cherry picked from commit d4cea794a7b9b745817d2bd982d35412aef04710)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-103053: Skip test_freeze_simple_script() on PGO build (#109591) (#109614)
Victor Stinner [Mon, 2 Oct 2023 15:04:19 +0000 (17:04 +0200)] 
[3.12] gh-103053: Skip test_freeze_simple_script() on PGO build (#109591) (#109614)

gh-103053: Skip test_freeze_simple_script() on PGO build (#109591)

Skip test_freeze_simple_script() of test_tools.test_freeze if Python
is built with "./configure --enable-optimizations", which means with
Profile Guided Optimization (PGO): it just makes the test too slow.
The freeze tool is tested by many other CIs with other (faster)
compiler flags.

test.pythoninfo now gets also get_build_info() of
test.libregrtests.utils.

(cherry picked from commit 81cd1bd713624c3d26b647f3d28f2fd905887a0d)

2 years ago[3.12] gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (GH-109431)...
Miss Islington (bot) [Mon, 2 Oct 2023 15:03:51 +0000 (08:03 -0700)] 
[3.12] gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (GH-109431) (#109609)

gh-108973: Fix asyncio test_subprocess_consistent_callbacks() (GH-109431)

SubprocessProtocol process_exited() method can be called before
pipe_data_received() and pipe_connection_lost() methods. Document it
and adapt the test for that.

Revert commit 282edd7b2a74c4dfe1bfe3c5b1d30f9c21d554d6.
_child_watcher_callback() calls immediately _process_exited(): don't
add an additional delay with call_soon(). The reverted change didn't
make _process_exited() more determistic: it can still be called
before pipe_connection_lost() for example.

(cherry picked from commit ced6924630037f1e5b3d1dbef2b600152fb07fbb)

Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Davide Rizzo <sorcio@gmail.com>
2 years ago[3.12] gh-109580: Skip test_perf_profiler on ASAN build (GH-109584) (#109585)
Miss Islington (bot) [Mon, 2 Oct 2023 15:00:11 +0000 (08:00 -0700)] 
[3.12] gh-109580: Skip test_perf_profiler on ASAN build (GH-109584) (#109585)

gh-109580: Skip test_perf_profiler on ASAN build (GH-109584)

Skip test_perf_profiler if Python is built with ASAN, MSAN or UBSAN
sanitizer. Python does crash randomly in this test on such build.
(cherry picked from commit 754519a9f8c2bb06d85ff9b3e9fe6f967ac46d5c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH...
Miss Islington (bot) [Mon, 2 Oct 2023 14:59:43 +0000 (07:59 -0700)] 
[3.12] gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533) (#109558)

gh-109469: Silence compiler warnings on string comparisons in _testcapi (GH-109533)
(cherry picked from commit ed582a2ed980efba2d0da365ae37bff4a2b99873)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-109546: Add more tests for formatting floats and fractions (GH-109548)...
Miss Islington (bot) [Mon, 2 Oct 2023 14:59:26 +0000 (07:59 -0700)] 
[3.12] gh-109546: Add more tests for formatting floats and fractions (GH-109548) (#109557)

gh-109546: Add more tests for formatting floats and fractions (GH-109548)
(cherry picked from commit beb5ec5817b645562ebbdd59f25683a93061c32c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] Fix error handling in _PySys_UpdateConfig() (GH-109524) (#109550)
Miss Islington (bot) [Mon, 2 Oct 2023 14:58:58 +0000 (07:58 -0700)] 
[3.12] Fix error handling in _PySys_UpdateConfig() (GH-109524) (#109550)

Fix error handling in _PySys_UpdateConfig() (GH-109524)
(cherry picked from commit c829975428253568d47ebfc3104fa7386b5e0b58)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] Fix date.__repr__() docstring (GH-109422) (#109448)
Miss Islington (bot) [Mon, 2 Oct 2023 14:58:43 +0000 (07:58 -0700)] 
[3.12] Fix date.__repr__() docstring (GH-109422) (#109448)

Fix date.__repr__() docstring (GH-109422)
(cherry picked from commit 5eec58a9e57383128ade7b527965b1efc474735b)

Co-authored-by: Christopher Yeh <chrisyeh96@users.noreply.github.com>
2 years ago[3.12] gh-109375: Fix bug where pdb registers an alias without an associated command...
Miss Islington (bot) [Mon, 2 Oct 2023 14:58:22 +0000 (07:58 -0700)] 
[3.12] gh-109375: Fix bug where pdb registers an alias without an associated command (GH-109376) (#109429)

gh-109375: Fix bug where pdb registers an alias without an associated command (GH-109376)
(cherry picked from commit 68a6f21f47e779ddd70e33cf04d170a63f077fcd)

Co-authored-by: buermarc <44375277+buermarc@users.noreply.github.com>
2 years ago[3.12] gh-109351: Fix crash when compiling AST with invalid NamedExpr (GH-109352...
Miss Islington (bot) [Mon, 2 Oct 2023 14:58:06 +0000 (07:58 -0700)] 
[3.12] gh-109351: Fix crash when compiling AST with invalid NamedExpr (GH-109352) (#109379)

gh-109351: Fix crash when compiling AST with invalid NamedExpr (GH-109352)
(cherry picked from commit 79101edb03b7381b514126c68acabfcbbba2f842)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] gh-84867: Do not load tests from TestCase and FunctionTestCase (GH-100497...
Miss Islington (bot) [Mon, 2 Oct 2023 14:57:44 +0000 (07:57 -0700)] 
[3.12] gh-84867: Do not load tests from TestCase and FunctionTestCase (GH-100497) (#109327)

gh-84867: Do not load tests from TestCase and FunctionTestCase (GH-100497)
(cherry picked from commit 66d1d7eb067d445f1ade151f4a6db3864dd9109f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109179: Fix traceback display for SyntaxErrors with notes (#109197) (#109280)
Irit Katriel [Mon, 2 Oct 2023 14:56:34 +0000 (15:56 +0100)] 
[3.12] gh-109179: Fix traceback display for SyntaxErrors with notes (#109197) (#109280)

(cherry picked from commit ecd21a629a2a30bcae89902f7cad5670e9441e2c)

2 years ago[3.12] gh-107219: Fix concurrent.futures terminate_broken() (GH-109244) (#109254)
Miss Islington (bot) [Mon, 2 Oct 2023 14:56:09 +0000 (07:56 -0700)] 
[3.12] gh-107219: Fix concurrent.futures terminate_broken() (GH-109244) (#109254)

gh-107219: Fix concurrent.futures terminate_broken() (GH-109244)

Fix a race condition in concurrent.futures. When a process in the
process pool was terminated abruptly (while the future was running or
pending), close the connection write end. If the call queue is
blocked on sending bytes to a worker process, closing the connection
write end interrupts the send, so the queue can be closed.

Changes:

* _ExecutorManagerThread.terminate_broken() now closes
  call_queue._writer.
* multiprocessing PipeConnection.close() now interrupts
  WaitForMultipleObjects() in _send_bytes() by cancelling the
  overlapped operation.
(cherry picked from commit a9b1f84790e977fb09f75b148c4c4f5924a6ef99)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-50644: Forbid pickling of codecs streams (GH-109180) (#109231)
Miss Islington (bot) [Mon, 2 Oct 2023 14:55:52 +0000 (07:55 -0700)] 
[3.12] gh-50644: Forbid pickling of codecs streams (GH-109180) (#109231)

gh-50644: Forbid pickling of codecs streams (GH-109180)

Attempts to pickle or create a shallow or deep copy of codecs streams
now raise a TypeError.

Previously, copying failed with a RecursionError, while pickling
produced wrong results that eventually caused unpickling to fail with
a RecursionError.
(cherry picked from commit d6892c2b9263b39ea1c7905667942914b6a24b2c)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-109207: Fix SystemError when printing symtable entry object. (GH-109225...
Miss Islington (bot) [Mon, 2 Oct 2023 14:55:41 +0000 (07:55 -0700)] 
[3.12] gh-109207: Fix SystemError when printing symtable entry object. (GH-109225) (#109227)

gh-109207: Fix SystemError when printing symtable entry object. (GH-109225)
(cherry picked from commit 429749969621b149c1a7c3c004bd44f52bec8f44)

Co-authored-by: 云line <31395137+yunline@users.noreply.github.com>
2 years ago[3.12] Check the result of PySet_Contains() for error in Python/symtable.c (GH-109146...
Miss Islington (bot) [Mon, 2 Oct 2023 14:55:24 +0000 (07:55 -0700)] 
[3.12] Check the result of PySet_Contains() for error in Python/symtable.c (GH-109146) (#109153)

Check the result of PySet_Contains() for error in Python/symtable.c (GH-109146)
(cherry picked from commit 87a7faf6b68c8076e640a9a1347a255f132d8382)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-104690: thread_run() checks for tstate dangling pointer (#109056) (#109133)
Victor Stinner [Mon, 2 Oct 2023 14:55:06 +0000 (16:55 +0200)] 
[3.12] gh-104690: thread_run() checks for tstate dangling pointer (#109056) (#109133)

gh-104690: thread_run() checks for tstate dangling pointer (#109056)

thread_run() of _threadmodule.c now calls
_PyThreadState_CheckConsistency() to check if tstate is a dangling
pointer when Python is built in debug mode.

Rename ceval_gil.c is_tstate_valid() to
_PyThreadState_CheckConsistency() to reuse it in _threadmodule.c.

(cherry picked from commit f63d37877ad166041489a968233b57540f8456e8)

2 years ago[3.12] gh-88943: Improve syntax error for non-ASCII character that follows a numerica...
Miss Islington (bot) [Mon, 2 Oct 2023 14:54:16 +0000 (07:54 -0700)] 
[3.12] gh-88943: Improve syntax error for non-ASCII character that follows a numerical literal (GH-109081) (#109090)

gh-88943: Improve syntax error for non-ASCII character that follows a numerical literal (GH-109081)

It now points on the invalid non-ASCII character, not on the valid numerical literal.
(cherry picked from commit b2729e93e9d73503b1fda4ea4fecd77c58909091)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years agoMerge branch '3.12' of https://github.com/python/cpython into 3.12
Thomas Wouters [Mon, 2 Oct 2023 14:44:26 +0000 (16:44 +0200)] 
Merge branch '3.12' of https://github.com/python/cpython into 3.12

2 years agoPost 3.12.0
Thomas Wouters [Mon, 2 Oct 2023 14:41:41 +0000 (16:41 +0200)] 
Post 3.12.0

2 years ago[3.12] gh-109496: Skip test_capi.test_decref_freed_object() on ASAN (GH-109573) ...
Miss Islington (bot) [Mon, 2 Oct 2023 14:09:35 +0000 (07:09 -0700)] 
[3.12] gh-109496: Skip test_capi.test_decref_freed_object() on ASAN (GH-109573) (#109578)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years agoPython 3.12.0 v3.12.0
Thomas Wouters [Mon, 2 Oct 2023 11:44:36 +0000 (13:44 +0200)] 
Python 3.12.0

2 years ago[3.12] GH-109190: Announce final release in What's New in Python 3.12 (GH-110117...
Miss Islington (bot) [Mon, 2 Oct 2023 11:26:30 +0000 (04:26 -0700)] 
[3.12] GH-109190: Announce final release in What's New in Python 3.12 (GH-110117) (#110215)

GH-109190: Announce final release in What's New in Python 3.12 (GH-110117)

Prepare What's New in Python 3.12 for final release
(cherry picked from commit 6139bf5e0c755ed22bdfb027a5299493f0c71be9)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] Docs: bump Pygments to fix contrast ratios to meet WCAG AA guidelines (GH...
Miss Islington (bot) [Mon, 2 Oct 2023 10:50:52 +0000 (03:50 -0700)] 
[3.12] Docs: bump Pygments to fix contrast ratios to meet WCAG AA guidelines (GH-110208) (#110210)

Docs: bump Pygments to fix contrast ratios to meet WCAG AA guidelines (GH-110208)
(cherry picked from commit 9cb8927bfc73b66e7c36ab02ca2a3077172ea0ac)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-92584: Move installation schemes overview to sysconfig docs (GH-108018...
Miss Islington (bot) [Mon, 2 Oct 2023 10:50:28 +0000 (03:50 -0700)] 
[3.12] GH-92584: Move installation schemes overview to sysconfig docs (GH-108018) (#110213)

GH-92584: Move installation schemes overview to sysconfig docs (GH-108018)

* Add new installation path functions subsection

* Add content from install/index to sysconfig

* Fix table

* Update note about installers

* Clean up the list of schemes, remove references to Distutils
(cherry picked from commit f16e81f368d08891e28dc1f038c1826ea80d7801)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928) ...
Miss Islington (bot) [Mon, 2 Oct 2023 10:09:54 +0000 (03:09 -0700)] 
[3.12] gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928) (#109929)

gh-107888: Fix test_mmap.test_access_parameter() on macOS 14 (GH-109928)
(cherry picked from commit 9dbfe2dc8e7bba25e52f9470ae6969821a365297)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] GH-101100: Fix reference warnings for ``namedtuple`` (GH-110113) (#110135)
Miss Islington (bot) [Mon, 2 Oct 2023 10:07:58 +0000 (03:07 -0700)] 
[3.12] GH-101100: Fix reference warnings for ``namedtuple`` (GH-110113) (#110135)

GH-101100: Fix reference warnings for ``namedtuple`` (GH-110113)
(cherry picked from commit cbdacc738a52a876aae5b74b4665d30a5f204766)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (GH-110142...
Miss Islington (bot) [Mon, 2 Oct 2023 10:03:12 +0000 (03:03 -0700)] 
[3.12] gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (GH-110142) (#110188)

gh-110138: Improve grammar in idiomatic usage of ``__main__.py`` (GH-110142)
(cherry picked from commit adf0f15a06c6e8ddd1a6d59b28efcbb26289f080)

Co-authored-by: Quentin Agren <quentin.agren@gmail.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `library/site.rst` (GH-110144) (#110187)
Hugo van Kemenade [Mon, 2 Oct 2023 10:02:29 +0000 (04:02 -0600)] 
[3.12] gh-101100: Fix sphinx warnings in `library/site.rst` (GH-110144) (#110187)

(cherry picked from commit 31097df611bb5c8084190202e095ae47e8b81c0f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2 years ago[3.12] GH-101100: Fix reference warnings for ``gettext`` (GH-110115) (#110140)
Miss Islington (bot) [Mon, 2 Oct 2023 10:01:26 +0000 (03:01 -0700)] 
[3.12] GH-101100: Fix reference warnings for ``gettext`` (GH-110115) (#110140)

GH-101100: Fix reference warnings for ``gettext`` (GH-110115)
(cherry picked from commit 0449fe999d56ba795a852d83380fe06514139935)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-109991: Update Windows build to use OpenSSL 3.0.11 (GH-110054) (#110056)
Miss Islington (bot) [Mon, 2 Oct 2023 09:59:52 +0000 (02:59 -0700)] 
[3.12] gh-109991: Update Windows build to use OpenSSL 3.0.11 (GH-110054) (#110056)

gh-109991: Update Windows build to use OpenSSL 3.0.11 (GH-110054)
(cherry picked from commit cf4c29725636e1a0dd2ebab443613b56ca6c9486)

Co-authored-by: Zachary Ware <zach@python.org>
2 years ago[3.12] gh-109634: Fix `:samp:` syntax (GH-110073) (#110095)
Miss Islington (bot) [Fri, 29 Sep 2023 13:31:10 +0000 (06:31 -0700)] 
[3.12] gh-109634: Fix `:samp:` syntax (GH-110073) (#110095)

gh-109634: Fix `:samp:` syntax (GH-110073)
(cherry picked from commit e27adc68ccee8345e05b7516e6b46f6c7ff53371)

Co-authored-by: Jacob Coffee <jacob@z7x.org>
2 years ago[3.12] gh-101100: Fix references to ``URLError`` and ``HTTPError`` in ``howto/urllib2...
Miss Islington (bot) [Fri, 29 Sep 2023 13:30:44 +0000 (06:30 -0700)] 
[3.12] gh-101100: Fix references to ``URLError`` and ``HTTPError`` in ``howto/urllib2.rst`` (GH-107966) (#110086)

gh-101100: Fix references to ``URLError`` and ``HTTPError`` in ``howto/urllib2.rst`` (GH-107966)
(cherry picked from commit bfd94ab9e9f4055ecedaa500b46b0270da9ffe12)

Co-authored-by: Yuki K <drsuaimqjgar@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (GH-109424) ...
Miss Islington (bot) [Fri, 29 Sep 2023 13:29:39 +0000 (06:29 -0700)] 
[3.12] gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (GH-109424) (#110084)

gh-101100: Fix Sphinx warnings in `tutorial/controlflow.rst` (GH-109424)
(cherry picked from commit 8898a8683b5631c24d51a6a7babf55a255874950)

Co-authored-by: Maciej Olko <maciej.olko@affirm.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `library/difflib.rst` (GH-110074) (#110081)
Miss Islington (bot) [Fri, 29 Sep 2023 13:29:14 +0000 (06:29 -0700)] 
[3.12] gh-101100: Fix sphinx warnings in `library/difflib.rst` (GH-110074) (#110081)

gh-101100: Fix sphinx warnings in `library/difflib.rst` (GH-110074)
(cherry picked from commit d102d39bbe175f179f28e4d4bea99dc122da5f8e)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-110045: Update symtable module for PEP 695 (GH-110066) (#110070)
Miss Islington (bot) [Fri, 29 Sep 2023 06:10:22 +0000 (23:10 -0700)] 
[3.12] gh-110045: Update symtable module for PEP 695 (GH-110066) (#110070)

gh-110045: Update symtable module for PEP 695 (GH-110066)
(cherry picked from commit 7dc2c5093ef027aab57bca953ac2d6477a4a440b)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Bytecode (GH-109821) (#110047)
Adam Turner [Thu, 28 Sep 2023 21:38:08 +0000 (22:38 +0100)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Bytecode (GH-109821) (#110047)

.
(cherry picked from commit 526380e28644236bde9e41b949497ca1ee22653f)

2 years ago[3.12] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests...
Miss Islington (bot) [Thu, 28 Sep 2023 15:21:09 +0000 (08:21 -0700)] 
[3.12] gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002) (#110005)

gh-109991: Update GitHub CI workflows to use OpenSSL 3.0.11 and multissltests to use 1.1.1w, 3.0.11, and 3.1.3. (gh-110002)
(cherry picked from commit c88037d137a98d7c399c7bd74d5117b5bcae1543)

Co-authored-by: Ned Deily <nad@python.org>
2 years ago[3.12] gh-109991: Update macOS installer to use OpenSSL 3.0.10. (#110004)
Ned Deily [Thu, 28 Sep 2023 15:20:36 +0000 (11:20 -0400)] 
[3.12] gh-109991: Update macOS installer to use OpenSSL 3.0.10. (#110004)

gh-109991: Update macOS installer to use OpenSSL 3.0.10.

(cherry picked from commit 884cd180876f60dc65bf00e33c0435be9918e410)

2 years ago[3.12] gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (GH-109931) (#109937)
Miss Islington (bot) [Thu, 28 Sep 2023 15:17:02 +0000 (08:17 -0700)] 
[3.12] gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (GH-109931) (#109937)

gh-101100: Fix Sphinx warnings in Doc/using/configure.rst (GH-109931)
(cherry picked from commit 3538930d87e6bdd2bfffa3f674a62cc91d359d31)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902...
Miss Islington (bot) [Wed, 27 Sep 2023 15:39:36 +0000 (08:39 -0700)] 
[3.12] no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902) (#109904)

no-issue: Fix a typo in the parameter name of random.expovariate. (gh-109902)
(cherry picked from commit 8100612bac2df1cbbb3a4cf646c4b82febf7807f)

Co-authored-by: lohaswinner <lohaswinner@gmail.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Release highlights (GH-109770) (#109971)
Miss Islington (bot) [Wed, 27 Sep 2023 15:39:10 +0000 (08:39 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Release highlights (GH-109770) (#109971)

* GH-109190: Copyedit 3.12 What's New: Release highlights (GH-109770)
(cherry picked from commit b35f0843fc15486b17bc945dde08b306b8e4e81f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* Delete bad merge leftovers

---------

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `library/devmode.rst` (GH-109963) (#109966)
Miss Islington (bot) [Wed, 27 Sep 2023 15:38:42 +0000 (08:38 -0700)] 
[3.12] gh-101100: Fix sphinx warnings in `library/devmode.rst` (GH-109963) (#109966)

gh-101100: Fix sphinx warnings in `library/devmode.rst` (GH-109963)
(cherry picked from commit d9809e84fbf22ed8d90b212a9322260f7074bc9c)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-107298: Document PyMODINIT_FUNC macro (GH-109236) (#109947)
Miss Islington (bot) [Wed, 27 Sep 2023 15:38:28 +0000 (08:38 -0700)] 
[3.12] gh-107298: Document PyMODINIT_FUNC macro (GH-109236) (#109947)

gh-107298: Document PyMODINIT_FUNC macro (GH-109236)

Document PyMODINIT_FUNC macro.

Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are
not documented. These macros should only be used to define the Python
C API. They should not be used outside Python code base.
(cherry picked from commit d7a27e527d7e669d2e45cff80ad725978226477c)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766) (#109925)
Miss Islington (bot) [Wed, 27 Sep 2023 15:13:14 +0000 (08:13 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766) (#109925)

* GH-109190: Copyedit 3.12 What's New: Deprecations (GH-109766)
(cherry picked from commit 87ddfa74e2d37f6837351ed2bafc7d6d55fe2fd0)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
* GH-109190: Copyedit 3.12 What's New: Deprecations (``os`` fix)  (#109927)

Merge the two ``os`` entries

(cherry picked from commit 0e28d0f7a1bc3776cc07e0f8b91bc43fcdbb4206)

---------

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-109889: comment out assertion indicating a failed optimization of a redunda...
Irit Katriel [Tue, 26 Sep 2023 15:17:32 +0000 (16:17 +0100)] 
[3.12] gh-109889: comment out assertion indicating a failed optimization of a redundant NOP (#109899)

* [3.12] gh-109889: comment out assertion indicating a failed optimization of a redundant NOP

* comment out the function to avoid warnings on it being unused

2 years ago[3.12] gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (GH-109881) (...
Hugo van Kemenade [Tue, 26 Sep 2023 15:03:31 +0000 (09:03 -0600)] 
[3.12] gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (GH-109881) (#109884)

[3.12] gh-101100: Fix Sphinx warnings in `Doc/library/weakref.rst` (GH-109881).
(cherry picked from commit 7c61a361fc2e93375e22849fffbc20b60e94dbde)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes (GH-109836...
Adam Turner [Tue, 26 Sep 2023 15:03:03 +0000 (16:03 +0100)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Sort Other Language Changes (GH-109836). (#109880)

(cherry picked from commit 86e7c611ac5bf067a697afbee6f9162704fd22db)

2 years ago[3.12] gh-109823: Adjust labels in compiler when removing an empty basic block which...
Miss Islington (bot) [Tue, 26 Sep 2023 00:37:52 +0000 (17:37 -0700)] 
[3.12] gh-109823: Adjust labels in compiler when removing an empty basic block which is a jump target (GH-109839) (#109865)

gh-109823: Adjust labels in compiler when removing an empty basic block which is a jump target (GH-109839)
(cherry picked from commit d73c12b88c2275fd44e27c91c24f3ac85419d2b8)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section...
Miss Islington (bot) [Tue, 26 Sep 2023 00:37:26 +0000 (17:37 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section (GH-109751) (#109830)

* GH-109190: Copyedit 3.12 What's New: Improve the C-API deprecations section (GH-109751)
(cherry picked from commit bccc1b78002c924e8f4121fea5de7df5eb127548)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* Remove the weakref get object functions

---------

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Use the present tense (GH-109754) (#109827)
Miss Islington (bot) [Tue, 26 Sep 2023 00:36:31 +0000 (17:36 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Use the present tense (GH-109754) (#109827)

GH-109190: Copyedit 3.12 What's New: Use the present tense (GH-109754)
(cherry picked from commit 4e478534d73e46aea5d10fb4e0ddf2c34440d0f6)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Trivia (GH-109760) (#109826)
Miss Islington (bot) [Mon, 25 Sep 2023 12:25:27 +0000 (05:25 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Trivia (GH-109760) (#109826)

GH-109190: Copyedit 3.12 What's New: Trivia (GH-109760)
(cherry picked from commit f08772cfd8f6602077e0989c1daa8bf74a8c15f1)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (GH-109753...
Miss Islington (bot) [Mon, 25 Sep 2023 12:25:16 +0000 (05:25 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (GH-109753) (#109825)

GH-109190: Copyedit 3.12 What's New: Prefer GitHub issues links (GH-109753)
(cherry picked from commit 7495a93e0f843c40ebc5925c6a35225d41e52654)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance ...
Miss Islington (bot) [Mon, 25 Sep 2023 10:16:13 +0000 (03:16 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance (GH-109755) (#109816)

GH-109190: Copyedit 3.12 What's New: Update the ``imp`` porting guidance (GH-109755)
(cherry picked from commit 7b8bfe1644c3d008c1b5c19a537ee7d19bc32c59)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools...
Miss Islington (bot) [Mon, 25 Sep 2023 10:16:00 +0000 (03:16 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools removal (GH-109768) (#109815)

GH-109190: Copyedit 3.12 What's New: Increase the prominence of the setuptools removal (GH-109768)
(cherry picked from commit 09a73d50f687b9b388b0386f400d9ba5a7c5f2a5)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (GH-109756) ...
Miss Islington (bot) [Mon, 25 Sep 2023 10:15:46 +0000 (03:15 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (GH-109756) (#109806)

GH-109190: Copyedit 3.12 What's New: Use the ``:file:`` role (GH-109756)
(cherry picked from commit 8d365b60bacf0a7edda24eba2d45aba1c2626fbc)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst`...
Miss Islington (bot) [Sun, 24 Sep 2023 11:55:28 +0000 (04:55 -0700)] 
[3.12] gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` (GH-109799) (#109800)

gh-101100: Fix sphinx warnings in `Doc/library/xml.etree.elementtree.rst` (GH-109799)
(cherry picked from commit 649768fb6781ba810df44017fee1975a11d65e2f)

gh-101100: Fix shpinx warnings in `Doc/library/xml.etree.elementtree.rst`

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109634: Use :samp: role (GH-109635) (#109776)
Miss Islington (bot) [Sun, 24 Sep 2023 11:54:36 +0000 (04:54 -0700)] 
[3.12] gh-109634: Use :samp: role (GH-109635) (#109776)

gh-109634: Use :samp: role (GH-109635)
(cherry picked from commit 92af0cc580051fd1129c7a86af2cbadeb2aa36dc)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767) (...
Miss Islington (bot) [Sun, 24 Sep 2023 11:53:56 +0000 (04:53 -0700)] 
[3.12] gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767) (#109773)

* gh-100228: Document the os.fork threads DeprecationWarning. (GH-109767)

Document the `os.fork` posix threads detected `DeprecationWarning` in 3.12 What's New, os, multiprocessing, and concurrent.futures docs.

Many reviews and doc cleanup edits by Adam & Hugo. 🥳

(cherry picked from commit 5e7ea95d9d5c3b80a67ffbeebd76ce4fc327dd8e)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
* link to the discussion thread from whatsnew

Include the link to the discussion in the what's new text per @malemberg's comment on. https://github.com/python/cpython/pull/109767

(i'll follow up with a PR to main to include this edit there as well)

---------

Co-authored-by: Gregory P. Smith <greg@krypto.org>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-95913: Add the release date for Python 3.11 (GH-109750) (#109771)
Miss Islington (bot) [Sun, 24 Sep 2023 11:53:27 +0000 (04:53 -0700)] 
[3.12] GH-95913: Add the release date for Python 3.11 (GH-109750) (#109771)

GH-95913: Add the release date for Python 3.11 (GH-109750)
(cherry picked from commit b10de68c6ceae1076cdc98c890b9802dc81a7f44)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] Docs: Update Donghee Na's name (GH-109743) (#109758)
Hugo van Kemenade [Sun, 24 Sep 2023 11:52:26 +0000 (05:52 -0600)] 
[3.12] Docs: Update Donghee Na's name (GH-109743) (#109758)

* Update Donghee Na's name in Docs/

* Update Donghee Na's name in Misc/ACKS

* Update Donghee Na's name in Misc/NEWS.d/

2 years ago[3.12] gh-109719: Fix missing jump target labels when compiler reorders cold/warm...
Miss Islington (bot) [Sun, 24 Sep 2023 11:51:30 +0000 (04:51 -0700)] 
[3.12] gh-109719: Fix missing jump target labels when compiler reorders cold/warm blocks (GH-109734) (#109749)

gh-109719: Fix missing jump target labels when compiler reorders cold/warm blocks (GH-109734)
(cherry picked from commit 7c553991724d8d537f8444db73f016008753d77a)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years ago[3.12] ACKS: Fix ordering; Correct Itamar Oren's surname; Add Adam Turner (GH-109737...
Miss Islington (bot) [Fri, 22 Sep 2023 16:53:20 +0000 (09:53 -0700)] 
[3.12] ACKS: Fix ordering; Correct Itamar Oren's surname; Add Adam Turner  (GH-109737) (#109741)

(cherry picked from commit 3e8fcb7df74248530c4280915c77e69811f69c3f)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: asyncio (GH-109661) (#109733)
Miss Islington (bot) [Fri, 22 Sep 2023 14:03:00 +0000 (07:03 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: asyncio (GH-109661) (#109733)

GH-109190: Copyedit 3.12 What's New: asyncio (GH-109661)
(cherry picked from commit c32abf1f21c4bd32abcefe4d601611b152568961)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Itamar Oren <itamarost@gmail.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: PEP 669 (GH-109658) (#109732)
Miss Islington (bot) [Fri, 22 Sep 2023 14:02:26 +0000 (07:02 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 669 (GH-109658) (#109732)

GH-109190: Copyedit 3.12 What's New: PEP 669 (GH-109658)
(cherry picked from commit 168c3a8a893fcb42f8a4d078a1e9a6bd7ad65253)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Other Language Changes (GH-109660) (...
Miss Islington (bot) [Fri, 22 Sep 2023 13:29:59 +0000 (06:29 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Other Language Changes (GH-109660) (#109730)

GH-109190: Copyedit 3.12 What's New: Other Language Changes (GH-109660)
(cherry picked from commit cade5960ae5949899bccbec3af72b0287d0f6749)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: PEP 684 (GH-109657) (#109729)
Miss Islington (bot) [Fri, 22 Sep 2023 13:29:36 +0000 (06:29 -0700)] 
[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 e94a2232eac07eb526ec93ef01699513cf9b0fa3)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: bytecode (LOAD_METHOD) (GH-109665) (...
Miss Islington (bot) [Fri, 22 Sep 2023 13:29:16 +0000 (06:29 -0700)] 
[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 d9415f6a45c2c4163b593713ef765cb2a60f8aa7)

bytecode: suppress reference to removed LOAD_METHOD

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-106967: remove Release and Date fields from whatsnew for 3.12 (#109648)
Hugo van Kemenade [Fri, 22 Sep 2023 13:28:02 +0000 (07:28 -0600)] 
[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>
2 years ago[3.12] gh-109627: duplicated small exit blocks need to be assigned jump target labels...
Irit Katriel [Fri, 22 Sep 2023 13:27:29 +0000 (14:27 +0100)] 
[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 9ccf0545efd5bc5af5aa51774030c471d49a972b)

2 years ago[3.12] gh-109408: Move Windows builds from Azure Pipelines PR to GitHub Actions ...
Miss Islington (bot) [Fri, 22 Sep 2023 13:26:58 +0000 (06:26 -0700)] 
[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 14cdefa667f211401c9dfab33c4695e80b4e5e95)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Consistently show module names (GH-109664...
Miss Islington (bot) [Fri, 22 Sep 2023 13:21:52 +0000 (06:21 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Consistently show module names (GH-109664) (#109713)

(cherry picked from commit 291401389bf76981688d82a0d7bb61fb8355ff14)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: calendar (GH-109662) (#109716)
Hugo van Kemenade [Fri, 22 Sep 2023 13:02:27 +0000 (07:02 -0600)] 
[3.12] GH-109190: Copyedit 3.12 What's New: calendar (GH-109662) (#109716)

(cherry picked from commit 34ddcc3fa118168901fa0d3a69b3b5444fc2f943)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: tokenize (GH-109663) (#109715)
Miss Islington (bot) [Fri, 22 Sep 2023 13:02:03 +0000 (06:02 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: tokenize (GH-109663) (#109715)

(cherry picked from commit d3fe1a902fd060cc9fb41b768cc1e3ca5b52244d)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: PEP 701 (GH-109655) (#109689)
Miss Islington (bot) [Fri, 22 Sep 2023 12:59:52 +0000 (05:59 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 701 (GH-109655) (#109689)

(cherry picked from commit e47d12e222507b1873a81f6955fdd3cfb8293b65)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Improved Error Messages (GH-109654) ...
Miss Islington (bot) [Fri, 22 Sep 2023 12:58:04 +0000 (05:58 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Improved Error Messages (GH-109654) (#109687)

(cherry picked from commit 16c24023c1f69f66d1e3313033be275a43329030)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: Typing PEPs (GH-109659) (#109684)
Miss Islington (bot) [Fri, 22 Sep 2023 12:57:22 +0000 (05:57 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: Typing PEPs (GH-109659) (#109684)

(cherry picked from commit 11636788da9e5e64ceef2ac80df330e8170a8d08)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] GH-109190: Copyedit 3.12 What's New: PEP 709 (GH-109656) (#109681)
Miss Islington (bot) [Fri, 22 Sep 2023 12:56:18 +0000 (05:56 -0700)] 
[3.12] GH-109190: Copyedit 3.12 What's New: PEP 709 (GH-109656) (#109681)

(cherry picked from commit 22b70ca480f5a2d19d3123cd35ab968fa65f224d)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] Misc itertool recipe improvements, mostly docstrings and comments (gh-109555...
Miss Islington (bot) [Fri, 22 Sep 2023 12:43:40 +0000 (05:43 -0700)] 
[3.12] Misc itertool recipe improvements, mostly docstrings and comments (gh-109555) (#109572)

(cherry picked from commit f2636d2c45aae0a04960dcfbc7d9a2a8a36ba3bc)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years ago[3.12] GH-109209: Bump the minimum Sphinx version to 4.2 (GH-109210) (#109636)
Miss Islington (bot) [Fri, 22 Sep 2023 12:30:57 +0000 (05:30 -0700)] 
[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 712cb173f8e1d02c625a40ae03bba57b0c1c032a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years agoPost 3.12.0rc3
Thomas Wouters [Tue, 19 Sep 2023 11:02:42 +0000 (13:02 +0200)] 
Post 3.12.0rc3

2 years agoPython 3.12.0rc3 v3.12.0rc3
Thomas Wouters [Mon, 18 Sep 2023 19:47:01 +0000 (21:47 +0200)] 
Python 3.12.0rc3

2 years ago[3.12] gh-109496: Detect Py_DECREF() after dealloc in debug mode (GH-109539) (#109545)
Miss Islington (bot) [Mon, 18 Sep 2023 17:39:27 +0000 (10:39 -0700)] 
[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>
2 years ago[3.12] gh-109408: Azure Pipelines: test 3.12 branch (GH-109453) (#109535)
Miss Islington (bot) [Mon, 18 Sep 2023 15:51:23 +0000 (08:51 -0700)] 
[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>
2 years ago[3.12] gh-109371: Fix monitoring with instruction events set (gh-109385) (#109542)
Miss Islington (bot) [Mon, 18 Sep 2023 15:40:51 +0000 (08:40 -0700)] 
[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>