]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
2 years ago[3.12] Sync factor() recipe with main branch (gh-110231)
Raymond Hettinger [Mon, 2 Oct 2023 19:19:46 +0000 (14:19 -0500)] 
[3.12] Sync factor() recipe with main branch (gh-110231)

2 years ago[3.12] Fix typos in docs and comments (#109619) (#109621)
Alex Waygood [Mon, 2 Oct 2023 17:34:49 +0000 (18:34 +0100)] 
[3.12] Fix typos in docs and comments (#109619) (#109621)

Fix typos in docs and comments (#109619)

Co-authored-by: Heinz-Alexander Fuetterer <35225576+afuetterer@users.noreply.github.com>
2 years ago[3.12] Code: Update Donghee Na's name (GH-109744) (#110225)
Miss Islington (bot) [Mon, 2 Oct 2023 17:31:34 +0000 (10:31 -0700)] 
[3.12] Code: Update Donghee Na's name (GH-109744) (#110225)

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
2 years ago[3.12] gh-110178: Use fewer weakrefs in test_typing.py (GH-110194) (#110224)
Miss Islington (bot) [Mon, 2 Oct 2023 17:15:30 +0000 (10:15 -0700)] 
[3.12] gh-110178: Use fewer weakrefs in test_typing.py (GH-110194) (#110224)

gh-110178: Use fewer weakrefs in test_typing.py (GH-110194)

Confirmed that without the C changes from GH-108517, this test still segfaults with only 10 weakrefs.
(cherry picked from commit 732ad44cec971be5255b1accbac6555d3615c2bf)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2 years ago[3.12] 3.12 What's New: Remove duplicate "up to" (GH-110219) (#110220)
Miss Islington (bot) [Mon, 2 Oct 2023 15:48:57 +0000 (08:48 -0700)] 
[3.12] 3.12 What's New: Remove duplicate "up to" (GH-110219) (#110220)

3.12 What's New: Remove duplicate "up to" (GH-110219)
(cherry picked from commit 8d92b6eff3bac45e7d4871c46c4511218b9b685a)

Co-authored-by: numbermaniac <5206120+numbermaniac@users.noreply.github.com>
2 years ago[3.12] gh-108963: using random to generate unique string in sys.intern test … (#110216)
Victor Stinner [Mon, 2 Oct 2023 15:48:42 +0000 (17:48 +0200)] 
[3.12] gh-108963: using random to generate unique string in sys.intern test … (#110216)

gh-108963: using random to generate unique string in sys.intern test (#109491)

(cherry picked from commit 44b1e4ea4842c6cdc1bedba7aaeb93f236b3ec08)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
2 years ago[3.12] gh-109590: Update shutil.which on Windows to prefer a PATHEXT extension on...
Miss Islington (bot) [Mon, 2 Oct 2023 15:48:30 +0000 (08:48 -0700)] 
[3.12] gh-109590: Update shutil.which on Windows to prefer a PATHEXT extension on executable files (GH-109995) (#110202)

gh-109590: Update shutil.which on Windows to prefer a PATHEXT extension on executable files (GH-109995)

The default arguments for shutil.which() request an executable file, but extensionless files are not executable on Windows and should be ignored.
(cherry picked from commit 29b875bb93099171aeb7a60cd18d4e1f4ea3c1db)

Co-authored-by: Charles Machalow <csm10495@gmail.com>
2 years ago[3.12] gh-110160: Fix flaky `test_find_periodic_pattern` in `string_tests` (GH-110170...
Miss Islington (bot) [Mon, 2 Oct 2023 15:48:17 +0000 (08:48 -0700)] 
[3.12] gh-110160: Fix flaky `test_find_periodic_pattern` in `string_tests` (GH-110170) (#110182)

gh-110160: Fix flaky `test_find_periodic_pattern` in `string_tests` (GH-110170)
(cherry picked from commit 06faa9a39bd93c5e7999d52b52043ecdd0774dac)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109649: Enhance os.cpu_count() documentation (#110169)
Victor Stinner [Mon, 2 Oct 2023 15:47:57 +0000 (17:47 +0200)] 
[3.12] gh-109649: Enhance os.cpu_count() documentation (#110169)

* gh-109649: Enhance os.cpu_count() documentation

* Doc: Specify that os.cpu_count() counts *logicial* CPUs.
* Doc: Specify that os.sched_getaffinity(0) is related to the calling
  thread.
* Fix test_posix.test_sched_getaffinity(): restore the old CPU mask
  when the test completes!

* Restore removed text

2 years ago[3.12] gh-110088: Fix asyncio test_prompt_cancellation() (GH-110157) (#110158)
Miss Islington (bot) [Mon, 2 Oct 2023 15:47:41 +0000 (08:47 -0700)] 
[3.12] gh-110088: Fix asyncio test_prompt_cancellation() (GH-110157) (#110158)

gh-110088: Fix asyncio test_prompt_cancellation() (GH-110157)

Don't measure the CI performance: don't test the maximum elapsed
time. The check failed on a slow CI.
(cherry picked from commit c62b49ecc8da13fa9522865ef6fe0aec194fd0d8)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] Add example for linear_regression() with proportional=True. (gh-110133) (...
Miss Islington (bot) [Mon, 2 Oct 2023 15:47:28 +0000 (08:47 -0700)] 
[3.12] Add example for linear_regression() with proportional=True. (gh-110133) (#110134)

Add example for linear_regression() with proportional=True. (gh-110133)
(cherry picked from commit 613c0d4e866341e15a66704643a6392ce49058ba)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years ago[3.12] gh-109047: concurrent.futures catches RuntimeError (#109810) (#110126)
Victor Stinner [Mon, 2 Oct 2023 15:47:10 +0000 (17:47 +0200)] 
[3.12] gh-109047: concurrent.futures catches RuntimeError (#109810) (#110126)

gh-109047: concurrent.futures catches PythonFinalizationError (#109810)

concurrent.futures: The *executor manager thread* now catches
exceptions when adding an item to the *call queue*. During Python
finalization, creating a new thread can now raise RuntimeError. Catch
the exception and call terminate_broken() in this case.

Add test_python_finalization_error() to test_concurrent_futures.

concurrent.futures._ExecutorManagerThread changes:

* terminate_broken() no longer calls shutdown_workers() since the
  call queue is no longer working anymore (read and write ends of
  the queue pipe are closed).
* terminate_broken() now terminates child processes, not only
  wait until they complete.
* _ExecutorManagerThread.terminate_broken() now holds shutdown_lock
  to prevent race conditons with ProcessPoolExecutor.submit().

multiprocessing.Queue changes:

* Add _terminate_broken() method.
* _start_thread() sets _thread to None on exception to prevent
  leaking "dangling threads" even if the thread was not started
  yet.

(cherry picked from commit 635184212179b0511768ea1cd57256e134ba2d75)

2 years ago[3.12] gh-109592: test_eintr tolerates 20 ms when comparing timings (GH-110102) ...
Miss Islington (bot) [Mon, 2 Oct 2023 15:46:45 +0000 (08:46 -0700)] 
[3.12] gh-109592: test_eintr tolerates 20 ms when comparing timings (GH-110102) (#110106)

gh-109592: test_eintr tolerates 20 ms when comparing timings (GH-110102)
(cherry picked from commit 9c73a9acec095c05a178e7dff638f7d9769318f3)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-110052: Fix faulthandler for freed tstate (#110069) (#110071)
Victor Stinner [Mon, 2 Oct 2023 15:44:51 +0000 (17:44 +0200)] 
[3.12] gh-110052: Fix faulthandler for freed tstate (#110069) (#110071)

gh-110052: Fix faulthandler for freed tstate (#110069)

faulthandler now detected freed interp and freed tstate, and no
longer dereference them.

(cherry picked from commit 2e37a38bcbfbe1357436e030538290e7d00b668d)

2 years ago[3.12] gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-11003...
Miss Islington (bot) [Mon, 2 Oct 2023 15:44:26 +0000 (08:44 -0700)] 
[3.12] gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-110037) (#110064)

gh-110036: multiprocessing Popen.terminate() catches PermissionError (GH-110037)

On Windows, multiprocessing Popen.terminate() now catchs
PermissionError and get the process exit code. If the process is
still running, raise again the PermissionError. Otherwise, the
process terminated as expected: store its exit code.
(cherry picked from commit bd4518c60c9df356cf5e05b81305e3644ebb5e70)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109960: Remove test_pty timeout of 10 seconds (GH-110058) (#110060)
Miss Islington (bot) [Mon, 2 Oct 2023 15:43:38 +0000 (08:43 -0700)] 
[3.12] gh-109960: Remove test_pty timeout of 10 seconds (GH-110058) (#110060)

gh-109960: Remove test_pty timeout of 10 seconds (GH-110058)

In 2003, test_pty got a hardcoded timeout of 10 seconds to prevent
hanging on AIX & HPUX "if run after test_openpty":
commit 7d8145268ee282f14d6adce9305dc3c1c7ffec14. Since 2003, test_pty
was no longer reported to hang on AIX. But today, the test can fail
simply because a CI is busy running other tests in parallel.
The timeout of 10 seconds is no longer needed, just remove it.
Moreover, regrtest now has multiple built-in generic timeout
mecanisms.
(cherry picked from commit 5fdcea744024c8a19ddb57057bf5ec2889546c98)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109889: fix compiler's redundant NOP detection to look past NOPs with no...
Miss Islington (bot) [Mon, 2 Oct 2023 15:43:16 +0000 (08:43 -0700)] 
[3.12] gh-109889: fix compiler's redundant NOP detection to look past NOPs with no lineno when looking for the next instruction's lineno (GH-109987) (#110048)

gh-109889: fix compiler's redundant NOP detection to look past NOPs with no lineno when looking for the next instruction's lineno (GH-109987)
(cherry picked from commit f580edcc6a4c528020afe46c753db713474acad6)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
2 years ago[3.12] gh-110038: KqueueSelector must count all read/write events (GH-110039) (#110043)
Davide Rizzo [Mon, 2 Oct 2023 15:42:55 +0000 (17:42 +0200)] 
[3.12] gh-110038: KqueueSelector must count all read/write events (GH-110039) (#110043)

[3.12] gh-110038: KqueueSelector must count all read/write events (GH-110039).
(cherry picked from commit b14f0ab51cb4851b25935279617e388456dcf716)

2 years ago[3.12] gh-110033: Fix signal test_interprocess_signal() (GH-110035) (#110040)
Miss Islington (bot) [Mon, 2 Oct 2023 15:42:40 +0000 (08:42 -0700)] 
[3.12] gh-110033: Fix signal test_interprocess_signal() (GH-110035) (#110040)

gh-110033: Fix signal test_interprocess_signal() (GH-110035)

Fix test_interprocess_signal() of test_signal. Make sure that the
subprocess.Popen object is deleted before the test raising an
exception in a signal handler. Otherwise, Popen.__del__() can get the
exception which is logged as "Exception ignored in: ...." and the
test fails.
(cherry picked from commit 7e0fbf5175fcf21dae390ba68b7f49706d62aa49)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109594: Fix concurrent.futures test_timeout() (GH-110018) (#110021)
Miss Islington (bot) [Mon, 2 Oct 2023 15:42:03 +0000 (08:42 -0700)] 
[3.12] gh-109594: Fix concurrent.futures test_timeout() (GH-110018) (#110021)

gh-109594: Fix concurrent.futures test_timeout() (GH-110018)

Fix test_timeout() of test_concurrent_futures.test_wait. Remove the
future which may or may not complete depending if it takes longer
than the timeout ot not. Keep the second future which does not
complete before wait(). Make also the test faster: 0.5 second instead
of 6 seconds, so remove @support.requires_resource('walltime')
decorator.
(cherry picked from commit 9be283e5e15d5d5685b78a38eb132501f7f3febb)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109818: `reprlib.recursive_repr` copies `__type_params__` (… (#109999)
Jelle Zijlstra [Mon, 2 Oct 2023 15:41:26 +0000 (08:41 -0700)] 
[3.12] gh-109818: `reprlib.recursive_repr` copies `__type_params__` (… (#109999)

[3.12] gh-109818: `reprlib.recursive_repr` copies `__type_params__` (GH-109819).
(cherry picked from commit f65f9e80fe741c894582a3e413d4e3318c1ed626)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2 years ago[3.12] gh-109955 : Update state transition comments for asyncio.Task (GH-109910)...
Miss Islington (bot) [Mon, 2 Oct 2023 15:41:12 +0000 (08:41 -0700)] 
[3.12] gh-109955 : Update state transition comments for asyncio.Task (GH-109910) (#109992)

gh-109955 : Update state transition comments for asyncio.Task (GH-109910)
(cherry picked from commit 45cf5b0c69bb5c51f33fc681d90c45147e311ddf)

Co-authored-by: Kristján Valur Jónsson <sweskman@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2 years ago[3.12] gh-109565: Fix concurrent.futures test_future_times_out() (GH-109949) (#109952)
Miss Islington (bot) [Mon, 2 Oct 2023 15:40:16 +0000 (08:40 -0700)] 
[3.12] gh-109565: Fix concurrent.futures test_future_times_out() (GH-109949) (#109952)

gh-109565: Fix concurrent.futures test_future_times_out() (GH-109949)

as_completed() uses a timeout of 100 ms instead of 10 ms. Windows
monotonic clock resolution is around 15.6 ms.
(cherry picked from commit b1aebf1e6576680d606068d17e2208259573e061)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109950)
Victor Stinner [Mon, 2 Oct 2023 15:40:02 +0000 (17:40 +0200)] 
[3.12] gh-109615: Fix test_tools.test_freeze SRCDIR (#109935) (#109950)

gh-109615: Fix test_tools.test_freeze SRCDIR (#109935)

Fix copy_source_tree() function of test_tools.test_freeze:

* Don't copy SRC_DIR/build/ anymore. This directory is modified by
  other tests running in parallel.
* Add test.support.copy_python_src_ignore().
* Use sysconfig to get the source directory.
* Use sysconfig.get_config_var() to get CONFIG_ARGS variable.

(cherry picked from commit 1512d6c6ee2a770afb339bbb74c1b990116f7f89)

2 years ago[3.12] Remove loop from docstring for asyncio.streams.open_connection (GH-108528...
Miss Islington (bot) [Mon, 2 Oct 2023 15:39:34 +0000 (08:39 -0700)] 
[3.12] Remove loop from docstring for asyncio.streams.open_connection (GH-108528) (#109941)

Remove loop from docstring for asyncio.streams.open_connection (GH-108528)
(cherry picked from commit e721f7a95186452339dc9e57630d639d549b2521)

Co-authored-by: Tom Gillespie <tgbugs@gmail.com>
2 years ago[3.12] gh-109098: Fuzz re module instead of internal sre (GH-109911) (#109932)
Miss Islington (bot) [Mon, 2 Oct 2023 15:39:07 +0000 (08:39 -0700)] 
[3.12] gh-109098: Fuzz re module instead of internal sre (GH-109911) (#109932)

gh-109098: Fuzz re module instead of internal sre (GH-109911)

* gh-109098: Fuzz re module instead of internal sre
* Fix c-analyzer globals test failure
* Put globals exception in ignored.tsv
(cherry picked from commit a829356f86d597e4dfe92e236a6d711c8a464f16)

Co-authored-by: Ammar Askar <ammar@ammaraskar.com>
2 years ago[3.12] gh-109845: Make test_ftplib more stable under load (GH-109912) (#109919)
Miss Islington (bot) [Mon, 2 Oct 2023 15:38:07 +0000 (08:38 -0700)] 
[3.12] gh-109845: Make test_ftplib more stable under load (GH-109912) (#109919)

gh-109845: Make test_ftplib more stable under load (GH-109912)

recv() can return partial data cut in the middle of a multibyte
character. Test raw binary data instead of data incorrectly decoded by parts.
(cherry picked from commit 2ef2fffe3be953b91852585c75188d5475b09474)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] More informative docstrings in the random module (gh-109745) (#109905)
Miss Islington (bot) [Mon, 2 Oct 2023 15:37:56 +0000 (08:37 -0700)] 
[3.12] More informative docstrings in the random module (gh-109745) (#109905)

More informative docstrings in the random module (gh-109745)
(cherry picked from commit 19bf3986958fc8269a1eb6d741bb60c91d6b5e58)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2 years ago[3.12] gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (GH-109629...
Miss Islington (bot) [Mon, 2 Oct 2023 15:37:40 +0000 (08:37 -0700)] 
[3.12] gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (GH-109629) (#109898)

gh-109593: Fix reentrancy issue in multiprocessing resource_tracker (GH-109629)

---------

(cherry picked from commit 0eb98837b60bc58e57ad3e2b35c6b0e9ab634678)

Co-authored-by: Antoine Pitrou <antoine@python.org>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2 years ago[3.12] gh-109832: concurrent.futures test_deadlock restores sys.stderr (GH-109887...
Miss Islington (bot) [Mon, 2 Oct 2023 15:37:25 +0000 (08:37 -0700)] 
[3.12] gh-109832: concurrent.futures test_deadlock restores sys.stderr (GH-109887) (#109892)

gh-109832: concurrent.futures test_deadlock restores sys.stderr (GH-109887)

test_error_at_task_unpickle() and
test_error_during_result_unpickle_in_result_handler() now restore
sys.stderr which is overriden by _raise_error_ignore_stderr().
(cherry picked from commit 2897142d2ec0930a8991af964c798b68fb6dcadd)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109631: Allow interruption of short repeated regex matches (GH-109867)...
Miss Islington (bot) [Mon, 2 Oct 2023 15:36:29 +0000 (08:36 -0700)] 
[3.12] gh-109631: Allow interruption of short repeated regex matches (GH-109867) (#109886)

gh-109631: Allow interruption of short repeated regex matches (GH-109867)

Counting for signal checking now continues in new match from the point where
it ended in the previous match instead of starting from 0.
(cherry picked from commit 8ac2085b80eca4d9b2a1093d0a7da020fd12e11a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2 years ago[3.12] gh-89363: Skip threading test_is_alive_after_fork() if ASAN (GH-109835) (...
Miss Islington (bot) [Mon, 2 Oct 2023 15:36:04 +0000 (08:36 -0700)] 
[3.12] gh-89363: Skip threading test_is_alive_after_fork() if ASAN (GH-109835) (#109855)

gh-89363: Skip threading test_is_alive_after_fork() if ASAN (GH-109835)

Skip test_is_alive_after_fork() of test_threading if Python is built
with Address Sanitizer (ASAN).
(cherry picked from commit bc06743533b5fea2d5ecdad6dd3caa372c67439f)

Co-authored-by: Victor Stinner <vstinner@python.org>
2 years ago[3.12] gh-109702: Increase concurrent_futures deadlock timeout (GH-109703) (#109705)
Miss Islington (bot) [Mon, 2 Oct 2023 15:35:36 +0000 (08:35 -0700)] 
[3.12] gh-109702: Increase concurrent_futures deadlock timeout (GH-109703) (#109705)

gh-109702: Increase concurrent_futures deadlock timeout (GH-109703)

Replace SHORT_TIMEOUT with LONG_TIMEOUT in test_deadlock of
test_concurrent_futures.
(cherry picked from commit 1eb1b45183c3b8aeefe3d5d27694155741e82bbc)

Co-authored-by: Victor Stinner <vstinner@python.org>
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>