]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
19 months ago[3.12] gh-105866: fix dataclass with slots=True, weakref_slot=True (GH-105870) (GH...
Miss Islington (bot) [Tue, 19 Mar 2024 10:57:31 +0000 (11:57 +0100)] 
[3.12] gh-105866: fix dataclass with slots=True, weakref_slot=True (GH-105870) (GH-116978)

(cherry picked from commit a22d05f04c074dbb4f71e7837f54c0bb693db75d)

Co-authored-by: Aviel Boag <avboag@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Carl Meyer <carl@oddbird.net>
19 months ago[3.12] Bump GitHub Actions (GH-116944) (#116948)
Miss Islington (bot) [Tue, 19 Mar 2024 10:56:03 +0000 (11:56 +0100)] 
[3.12] Bump GitHub Actions (GH-116944) (#116948)

(cherry picked from commit 3a99f5c5f34dc7b67597ca7230da355d92927c71)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
19 months ago[3.12] gh-90535: Fix support of interval>1 in logging.TimedRotatingFileHandler (GH...
Miss Islington (bot) [Mon, 18 Mar 2024 17:47:26 +0000 (18:47 +0100)] 
[3.12] gh-90535: Fix support of interval>1 in logging.TimedRotatingFileHandler (GH-116220) (GH-116892)

Fix support of interval values > 1 in logging.TimedRotatingFileHandler
for when='MIDNIGHT' and when='Wx'.
(cherry picked from commit 269051d20e65eda30734cbbbdb07d21df61978d6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
19 months ago[3.12] gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) (#116951)
Miss Islington (bot) [Mon, 18 Mar 2024 14:37:26 +0000 (15:37 +0100)] 
[3.12] gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) (#116951)

In Lexical Analysis f-strings section, NULL in the description
of 'literal character' means '\0'.  In the format_spec grammar
production, it is wrong with that meaning and redundant if
instead interpreted as <nothing>.  Remove it there.
(cherry picked from commit 4e45c6c54a9457b1ca5b4cf3aa2843b7218d4414)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
19 months ago[3.12] gh-115874: Don't use module state in teedataobject tp_dealloc (GH-116204)...
Miss Islington (bot) [Mon, 18 Mar 2024 12:40:34 +0000 (13:40 +0100)] 
[3.12] gh-115874: Don't use module state in teedataobject tp_dealloc (GH-116204) (#116955)

(cherry picked from commit e2fcaf19d302b05d3466807bad0a61f39db2a51b)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
19 months ago[3.12] gh-112536: Add TSAN build on Github Actions (GH-116872)
Antoine Pitrou [Mon, 18 Mar 2024 09:52:54 +0000 (10:52 +0100)] 
[3.12] gh-112536: Add TSAN build on Github Actions (GH-116872)

(cherry picked from commit 20578a1f68c841a264b72b00591b11ab2fa77b43)

Co-authored-by: Donghee Na <donghee.na@python.org>
19 months ago[3.12] gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601...
Antoine Pitrou [Mon, 18 Mar 2024 09:22:19 +0000 (10:22 +0100)] 
[3.12] gh-112536: Add --tsan test for reasonable TSAN execution times. (gh-116601) (#116929)

(cherry picked from commit ebf29b3)

Co-authored-by: Donghee Na <donghee.na@python.org>
19 months ago[3.12] gh-112536: Add support for thread sanitizer (TSAN) (gh-112648) (#116924)
Antoine Pitrou [Sun, 17 Mar 2024 15:33:35 +0000 (16:33 +0100)] 
[3.12] gh-112536: Add support for thread sanitizer (TSAN) (gh-112648) (#116924)

* [3.12] gh-112536: Add support for thread sanitizer (TSAN) (gh-112648)
(cherry picked from commit 88cb9720001295f82c7771ab4ebf20f3cd0b31fb)

* Remove doc for configure option (leave it hidden in this branch)

---------

Co-authored-by: Samet YASLAN <sametyaslan@gmail.com>
19 months ago[3.12] gh-116780: Fix `test_inspect` in `-OO` mode (GH-116788) (#116799)
Nikita Sobolev [Sun, 17 Mar 2024 10:33:38 +0000 (13:33 +0300)] 
[3.12] gh-116780: Fix `test_inspect` in `-OO` mode (GH-116788) (#116799)

19 months ago[3.12] gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852...
Miss Islington (bot) [Sat, 16 Mar 2024 13:10:10 +0000 (14:10 +0100)] 
[3.12] gh-116851: Remove "from ctypes import *" from a ctypes example (GH-116852) (GH-116905)

It is confusing, because libc is not imported from ctypes,
but defined in previous examples, which already contain the import.
(cherry picked from commit 744c0777952f1e535d1192ee15b286aa67b61533)

Co-authored-by: jnchen <caojingchen@live.com>
19 months ago[3.12] gh-116484: Fix collisions between Checkbutton and ttk.Checkbutton default...
Miss Islington (bot) [Sat, 16 Mar 2024 11:51:08 +0000 (12:51 +0100)] 
[3.12] gh-116484: Fix collisions between Checkbutton and ttk.Checkbutton default names (GH-116495) (GH-116901)

Change automatically generated tkinter.Checkbutton widget names to
avoid collisions with automatically generated tkinter.ttk.Checkbutton
widget names within the same parent widget.
(cherry picked from commit c61cb507c10c5b597928284e087a9a384ab267d0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
19 months ago[3.12] gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) (GH-116894)
Miss Islington (bot) [Sat, 16 Mar 2024 11:00:32 +0000 (12:00 +0100)] 
[3.12] gh-116764: Fix regressions in urllib.parse.parse_qsl() (GH-116801) (GH-116894)

* Restore support of None and other false values.
* Raise TypeError for non-zero integers and non-empty sequences.

The regressions were introduced in gh-74668
(bdba8ef42b15e651dc23374a08143cc2b4c4657d).
(cherry picked from commit 1069a462f611f0b70b6eec0bba603d618a0378f3)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
19 months ago[3.12] gh-116858: Add `@cpython_only` to several tests in `test_cmd_line` (GH-116859...
Nikita Sobolev [Sat, 16 Mar 2024 09:31:28 +0000 (12:31 +0300)] 
[3.12] gh-116858: Add `@cpython_only` to several tests in `test_cmd_line` (GH-116859) (#116889)

19 months ago[3.12] gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783...
Miss Islington (bot) [Fri, 15 Mar 2024 15:54:59 +0000 (16:54 +0100)] 
[3.12] gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783) (#116870)

gh-116782: Mention `__type_params__` in `inspect.getmembers` docs (GH-116783)
(cherry picked from commit 16349868d396cc1bff5188de3638321e87fe0293)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
19 months ago[3.12] gh-116811: Ensure MetadataPathFinder.invalidate_caches is reachable when deleg...
Jason R. Coombs [Fri, 15 Mar 2024 13:59:28 +0000 (09:59 -0400)] 
[3.12] gh-116811: Ensure MetadataPathFinder.invalidate_caches is reachable when delegated through PathFinder. (GH-116812) (#116864)

* Make MetadataPathFinder a proper classmethod.

* In PathFinder.invalidate_caches, also invoke MetadataPathFinder.invalidate_caches.

* Add blurb
(cherry picked from commit 5f52d20a93908196f74271db8437cc1ba7e1e262)

19 months ago[3.12] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) (#116854)
Miss Islington (bot) [Fri, 15 Mar 2024 09:52:00 +0000 (10:52 +0100)] 
[3.12] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) (#116854)

gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834)
(cherry picked from commit a50cf6c3d76b34e2ee9f92a248f1b0df24e407f6)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
19 months ago[3.12] gh-116842: Improve test comment and fix a doctest (gh-116846) (gh-116847)
Miss Islington (bot) [Fri, 15 Mar 2024 02:46:54 +0000 (03:46 +0100)] 
[3.12] gh-116842: Improve test comment and fix a doctest (gh-116846) (gh-116847)

19 months ago[3.12] Minor improvements to the itertools documentation (gh-116833) (gh-116838)
Raymond Hettinger [Fri, 15 Mar 2024 00:41:38 +0000 (19:41 -0500)] 
[3.12] Minor improvements to the itertools documentation (gh-116833) (gh-116838)

19 months ago[3.12] gh-112795: Move the test for ZipFile into the core tests for zipfile. (GH...
Miss Islington (bot) [Thu, 14 Mar 2024 20:24:19 +0000 (21:24 +0100)] 
[3.12] gh-112795: Move the test for ZipFile into the core tests for zipfile. (GH-116823) (#116830)

gh-112795: Move the test for ZipFile into the core tests for zipfile. (GH-116823)

Move the test for ZipFile into the core tests for zipfile.
(cherry picked from commit fd8e30eb62d0ecfb75786df1ac25593b0143cc98)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
19 months ago[3.12] gh-116731: libregrtest: Clear inspect & importlib.metadata caches in clear_cac...
Miss Islington (bot) [Thu, 14 Mar 2024 16:39:38 +0000 (17:39 +0100)] 
[3.12] gh-116731: libregrtest: Clear inspect & importlib.metadata caches in clear_caches (GH-116805) (GH-116820)

gh-116731: libregrtest: Clear inspect & importlib.metadata caches in clear_caches (GH-116805)
(cherry picked from commit bae6579b46df50dee4dbb77ea242270d27cd0c9d)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
19 months ago[3.12] gh-116626: Emit `CALL` events for all `INSTRUMENTED_CALL_FUNCTION_EX (GH-116732)
Tian Gao [Thu, 14 Mar 2024 16:23:15 +0000 (09:23 -0700)] 
[3.12] gh-116626: Emit `CALL` events for all `INSTRUMENTED_CALL_FUNCTION_EX (GH-116732)

Backport of GH-116627

19 months ago[3.12] gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765) (GH...
Serhiy Storchaka [Thu, 14 Mar 2024 12:50:39 +0000 (14:50 +0200)] 
[3.12] gh-90300: Fix undocumented envvars in the Python CLI help (GH-116765) (GH-116797)

(cherry picked from commit 19ac28bd08fdb16795e6f82ea7bfac73e8f3791b)

19 months ago[3.12] gh-116785: Fix direct invocation of `test_inspect` (GH-116787) (#116794)
Miss Islington (bot) [Thu, 14 Mar 2024 10:20:20 +0000 (11:20 +0100)] 
[3.12] gh-116785: Fix direct invocation of `test_inspect` (GH-116787) (#116794)

gh-116785: Fix direct invocation of `test_inspect` (GH-116787)
(cherry picked from commit 66fb613d90fe3dea32130a5937963a9362c8a59e)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
19 months ago[3.12] gh-90300: Document equivalent -X options for envvars in the Python CLI help...
Serhiy Storchaka [Thu, 14 Mar 2024 10:04:14 +0000 (12:04 +0200)] 
[3.12] gh-90300: Document equivalent -X options for envvars in the Python CLI help (GH-116756) (GH-116786)

(cherry picked from commit 8c6db45ce34df7081d7497e638daf3e130303295)

19 months ago[3.12] gh-90300: Sort the -X options and some envvars in the Python CLI help (GH...
Serhiy Storchaka [Wed, 13 Mar 2024 23:02:29 +0000 (01:02 +0200)] 
[3.12] gh-90300: Sort the -X options and some envvars in the Python CLI help (GH-116739) (GH-116766)

(cherry picked from commit e54bdeab9ce2958a22ba08c1f1f1431c5e8056bd)

19 months ago[3.12] GH-115979: update test_importlib to work under WASI SDK 21 (GH-116754) (GH...
Miss Islington (bot) [Wed, 13 Mar 2024 21:31:09 +0000 (22:31 +0100)] 
[3.12] GH-115979: update test_importlib to work under WASI SDK 21 (GH-116754) (GH-116759)

GH-115979: update test_importlib to work under WASI SDK 21 (GH-116754)
(cherry picked from commit 61733a2fb9dc36d2246d922146a3462a2248832d)

Co-authored-by: Brett Cannon <brett@python.org>
19 months ago[3.12] Better presentation order for recipes. (gh-116755) (gh-116757)
Miss Islington (bot) [Wed, 13 Mar 2024 20:12:09 +0000 (21:12 +0100)] 
[3.12] Better presentation order for recipes. (gh-116755) (gh-116757)

19 months ago[3.12] gh-100746: Improve `test_named_expressions.py` (GH-116713) (#116747)
Miss Islington (bot) [Wed, 13 Mar 2024 19:03:55 +0000 (20:03 +0100)] 
[3.12] gh-100746: Improve `test_named_expressions.py` (GH-116713) (#116747)

gh-100746: Improve `test_named_expressions.py` (GH-116713)
(cherry picked from commit 25684e71310642ffd20b45eea9b5226a1fa809a5)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
19 months ago[3.12] gh-98731: Improvements to the logging documentation (GH-101618) (GH-116734)
Miss Islington (bot) [Wed, 13 Mar 2024 17:16:48 +0000 (18:16 +0100)] 
[3.12] gh-98731: Improvements to the logging documentation (GH-101618) (GH-116734)

(cherry picked from commit 7f418fb111dec325b5c9fe6f6e96076049322f02)

19 months ago[3.12] [doc]: Update cookbook recipe for Qt6. (GH-116719) (GH-116729)
Miss Islington (bot) [Wed, 13 Mar 2024 14:33:31 +0000 (15:33 +0100)] 
[3.12] [doc]: Update cookbook recipe for Qt6. (GH-116719) (GH-116729)

(cherry picked from commit 186af3cf21705badec086ec16f231ac390747d3b)

19 months ago[3.12] gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718) (#116726)
Miss Islington (bot) [Wed, 13 Mar 2024 14:16:23 +0000 (15:16 +0100)] 
[3.12] gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718) (#116726)

gh-110918: Fix side effects of regrtest test_match_tests() (GH-116718)

test_match_tests now saves and restores patterns.

Add get_match_tests() function to libregrtest.filter.

Previously, running test_regrtest multiple times in a row only ran
tests once: "./python -m test test_regrtest -R 3:3.
(cherry picked from commit 612f1ec988314bc0bc42a1b908751950331e2ede)

Co-authored-by: Victor Stinner <vstinner@python.org>
19 months ago[3.12] gh-90300: Fix cmdline.rst (GH-116721) (GH-116724)
Miss Islington (bot) [Wed, 13 Mar 2024 13:46:58 +0000 (14:46 +0100)] 
[3.12] gh-90300: Fix cmdline.rst (GH-116721) (GH-116724)

* Fix the description of the "-b" option.
* Add references to environment variables for "-s" and "-X dev" options.
(cherry picked from commit 33662d4e01d73cd4f29a25efc2ef09288129023f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
19 months ago[3.12] gh-116714: Handle errors correctly in `PyFloat_GetInfo` (GH-116715) (#116722)
Miss Islington (bot) [Wed, 13 Mar 2024 13:40:38 +0000 (14:40 +0100)] 
[3.12] gh-116714: Handle errors correctly in `PyFloat_GetInfo` (GH-116715) (#116722)

gh-116714: Handle errors correctly in `PyFloat_GetInfo` (GH-116715)
(cherry picked from commit fcd49b4f47f1edd9a2717f6619da7e7af8ea73cf)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
19 months ago[3.12] gh-116401: Fix blocking os.fwalk() and shutil.rmtree() on opening a named...
Serhiy Storchaka [Wed, 13 Mar 2024 10:02:37 +0000 (12:02 +0200)] 
[3.12] gh-116401: Fix blocking os.fwalk() and shutil.rmtree() on opening a named pipe (GH-116421) (GH-116716)

(cherry picked from commit aa7bcf284f006434b07839d82f325618f7a5c06c)

19 months ago[3.12] gh-116491: Improve `test_win32_ver` (GH-116506) (#116708)
Miss Islington (bot) [Wed, 13 Mar 2024 07:29:13 +0000 (08:29 +0100)] 
[3.12] gh-116491: Improve `test_win32_ver` (GH-116506) (#116708)

gh-116491: Improve `test_win32_ver` (GH-116506)
(cherry picked from commit ee0dbbc04504e0e0f1455e2bab8801ce0a682afd)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
19 months ago[3.12] Modernize roundrobin() recipe and improve variable names (gh-116710) (gh-116711)
Miss Islington (bot) [Wed, 13 Mar 2024 07:19:12 +0000 (08:19 +0100)] 
[3.12] Modernize roundrobin() recipe and improve variable names (gh-116710) (gh-116711)

19 months ago[3.12] gh-115264: Fix `test_functools` with `-00` mode (GH-115276) (#116707)
Miss Islington (bot) [Wed, 13 Mar 2024 07:10:59 +0000 (08:10 +0100)] 
[3.12] gh-115264: Fix `test_functools` with `-00` mode (GH-115276) (#116707)

gh-115264: Fix `test_functools` with `-00` mode (GH-115276)
(cherry picked from commit 27df81d5643f32be6ae84a00c5cf84b58e849b21)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
19 months ago[3.12] gh-111307: Update design FAQ 'switch' entry (GH-115899) (#116703)
Miss Islington (bot) [Wed, 13 Mar 2024 05:36:43 +0000 (06:36 +0100)] 
[3.12] gh-111307: Update design FAQ 'switch' entry (GH-115899) (#116703)

(cherry picked from commit 43986f55671ba2f7b08f8c5cea69aa136a093697)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
19 months ago[3.12] Docs: fix broken links (GH-116651) (#116700)
Miss Islington (bot) [Wed, 13 Mar 2024 04:37:38 +0000 (05:37 +0100)] 
[3.12] Docs: fix broken links (GH-116651) (#116700)

(cherry picked from commit 3f1b6efee95c06f8912bcea4031afacdbc0d5684)

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
19 months ago[3.12] Minor clarity improvement for the iter_index() recipe. Also add value subseque...
Miss Islington (bot) [Wed, 13 Mar 2024 02:40:31 +0000 (03:40 +0100)] 
[3.12] Minor clarity improvement for the iter_index() recipe. Also add value subsequence tests. (gh-116696) (gh-116698)

19 months ago[3.12] gh-116682: stdout may be empty in test_cancel_futures_wait_false (GH-116683...
Miss Islington (bot) [Wed, 13 Mar 2024 00:28:21 +0000 (01:28 +0100)] 
[3.12] gh-116682: stdout may be empty in test_cancel_futures_wait_false (GH-116683) (#116692)

If the `shutdown()` call happens before the worker thread starts executing
the task, then nothing will be printed to stdout.
(cherry picked from commit 7d1abe9502641a3602e9773aebc29ee56d8f40ae)

Co-authored-by: Sam Gross <colesbury@gmail.com>
19 months agoFix linting for Modules/gcmodule.c (#116691)
Pablo Galindo Salgado [Wed, 13 Mar 2024 00:00:14 +0000 (00:00 +0000)] 
Fix linting for Modules/gcmodule.c (#116691)

19 months ago[3.12] gh-116604: Correctly honor the gc status when calling _Py_RunGC (GH-116628...
Pablo Galindo Salgado [Tue, 12 Mar 2024 23:38:20 +0000 (23:38 +0000)] 
[3.12] gh-116604: Correctly honor the gc status when calling _Py_RunGC (GH-116628) (#116653)

19 months ago[3.12] gh-116307: Proper fix for 'mod' leaking across importlib tests (GH-116680...
Miss Islington (bot) [Tue, 12 Mar 2024 23:33:23 +0000 (00:33 +0100)] 
[3.12] gh-116307: Proper fix for 'mod' leaking across importlib tests (GH-116680) (#116684)

gh-116307: Proper fix for 'mod' leaking across importlib tests (GH-116680)
(cherry picked from commit a2548077614f81f25a2c3465dabb7a0a3885c40c)

gh-116307: Create a new import helper 'isolated modules' and use that instead of 'Clean Import' to ensure that tests from importlib_resources don't leave modules in sys.modules.

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
19 months ago[3.12] Add `typing.NamedTuple` in glossary section for named tuples (GH-108327) ...
Miss Islington (bot) [Tue, 12 Mar 2024 22:53:08 +0000 (23:53 +0100)] 
[3.12] Add `typing.NamedTuple` in glossary section for named tuples (GH-108327) (#116689)

(cherry picked from commit 149f7f7ae28944579792d22607532006977177c9)

Co-authored-by: Tushar Sadhwani <tushar.sadhwani000@gmail.com>
19 months ago[3.12] Beef-up tests for the itertool docs. (gh-116679) (gh-116688)
Miss Islington (bot) [Tue, 12 Mar 2024 22:26:32 +0000 (23:26 +0100)] 
[3.12] Beef-up tests for the itertool docs. (gh-116679) (gh-116688)

19 months ago[3.12] gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (GH-116658...
Miss Islington (bot) [Tue, 12 Mar 2024 18:06:32 +0000 (19:06 +0100)] 
[3.12] gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (GH-116658) (#116668)

gh-116656: Fix test_capi test_py_config_isoloated_per_interpreter() (GH-116658)

Don't parse argv when setting the configuration, to avoid SystemExit if parsing argv fails.
(cherry picked from commit f6e7a6ce651b43c6e060608a4bb20685f39e9eaa)

Co-authored-by: Victor Stinner <vstinner@python.org>
19 months ago[3.12] gh-90095: Make .pdbrc work properly and add some reasonable te… (#116661)
Tian Gao [Tue, 12 Mar 2024 16:58:17 +0000 (09:58 -0700)] 
[3.12] gh-90095: Make .pdbrc work properly and add some reasonable te… (#116661)

[3.12] gh-90095: Make .pdbrc work properly and add some reasonable tests (GH-110496)
(cherry picked from commit 44f9a84b67c97c94f0d581ffd63b24b73fb79610)

19 months ago[3.12] gh-110819: Fix ‘kind’ may be used uninitialized warning in `longobject` (GH...
Miss Islington (bot) [Tue, 12 Mar 2024 11:09:15 +0000 (12:09 +0100)] 
[3.12] gh-110819: Fix â€˜kind’ may be used uninitialized warning in `longobject` (GH-116599) (#116648)

gh-110819: Fix â€˜kind’ may be used uninitialized warning in `longobject` (GH-116599)
(cherry picked from commit eb947cdc1374842a32fa82249ba3c688abf252dc)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
19 months ago[3.12] gh-116541: Handle errors correctly in `_pystatvfs_fromstructstatvfs` (GH-11654...
Miss Islington (bot) [Tue, 12 Mar 2024 10:30:40 +0000 (11:30 +0100)] 
[3.12] gh-116541: Handle errors correctly in `_pystatvfs_fromstructstatvfs` (GH-116542) (#116643)

gh-116541: Handle errors correctly in `_pystatvfs_fromstructstatvfs` (GH-116542)
(cherry picked from commit f8147d01da44da2434496d868c86c2785f7244cd)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
19 months ago[3.12] gh-116600: [Enum] fix global Flag repr (GH-116615) (GH-116629)
Miss Islington (bot) [Tue, 12 Mar 2024 00:36:00 +0000 (01:36 +0100)] 
[3.12] gh-116600: [Enum] fix global Flag repr (GH-116615) (GH-116629)

* and fix global flag repr

(cherry picked from commit 06e29a224fac9edeba55422d2e60f2fbb88dddce)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
19 months ago[3.12] gh-116040: [Enum] fix test_empty_names test (GH-116508) (GH-116619)
Miss Islington (bot) [Mon, 11 Mar 2024 22:16:22 +0000 (23:16 +0100)] 
[3.12] gh-116040: [Enum] fix test_empty_names test (GH-116508) (GH-116619)

* and fix _not_given usage

(cherry picked from commit 3c0dcef9808e34744096769b15bad4f1f97569f0)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
19 months ago[3.12] gh-116563: Update tutorial error example (GH-116569) (#116624)
Miss Islington (bot) [Mon, 11 Mar 2024 22:11:44 +0000 (23:11 +0100)] 
[3.12] gh-116563: Update tutorial error example (GH-116569) (#116624)

There now may be multiple carets pointing at a token
rather than just a character.  Fix the sentence about
possible causes.
(cherry picked from commit 3e45030076bf2cfab41c4456c73fb212b7322c60)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
19 months ago[3.12] gh-71052: Use `raise_signal` in `ThreadSignals.test_signals` (GH-116423) ...
Miss Islington (bot) [Mon, 11 Mar 2024 21:09:42 +0000 (22:09 +0100)] 
[3.12] gh-71052: Use `raise_signal` in `ThreadSignals.test_signals` (GH-116423) (#116618)

gh-71052: Use `raise_signal` in `ThreadSignals.test_signals` (GH-116423)

Use `raise_signal` rather than `kill` in `ThreadSignals.test_signals`
(cherry picked from commit 34920f36917de0d4e658cf94992d53a5a7f27f51)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
19 months ago[3.12] gh-116545: Fix error handling in `mkpwent` in `pwdmodule` (GH-116548) (#116593)
Miss Islington (bot) [Mon, 11 Mar 2024 11:55:09 +0000 (12:55 +0100)] 
[3.12] gh-116545: Fix error handling in `mkpwent` in `pwdmodule` (GH-116548) (#116593)

gh-116545: Fix error handling in `mkpwent` in `pwdmodule` (GH-116548)
(cherry picked from commit ffd79bea0f032df5a2e7f75e8c823a09cdc7c7a2)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
19 months ago[3.12] gh-88352: Make TimedRotatingFileHandler tests more stable (GH-116409) (GH...
Miss Islington (bot) [Mon, 11 Mar 2024 10:49:30 +0000 (11:49 +0100)] 
[3.12] gh-88352: Make TimedRotatingFileHandler tests more stable (GH-116409) (GH-116585)

The tests failed (with less than 1% probability) if for example the file
was created at 11:46:03.999, but the record was emitted at 11:46:04.001,
with atTime=11:46:04, which caused an unexpected rollover. Ensure that the
tests are always run within the range of the same whole second.

Also share code between test_rollover_at_midnight and test_rollover_at_weekday.
(cherry picked from commit d8712fa0c75ad5ea56543903fa45674ab47cc647)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
19 months ago[3.12] gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list (GH-116577...
Miss Islington (bot) [Mon, 11 Mar 2024 07:15:51 +0000 (08:15 +0100)] 
[3.12] gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list (GH-116577) (#116582)

gh-116576: Fix `Tools/scripts/sortperf.py` sorting the same list (GH-116577)
(cherry picked from commit 4704e55a71c859c5d17cc2747ba62f49da58ea2d)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] gh-116535: Fix distracting "TypeError" in example code (gh-116538) (gh-116551)
Miss Islington (bot) [Sat, 9 Mar 2024 22:08:12 +0000 (23:08 +0100)] 
[3.12] gh-116535: Fix distracting "TypeError" in example code (gh-116538) (gh-116551)

gh-116535: Fix distracting "TypeError" in example code (gh-116538)
(cherry picked from commit db8f423f58e336eb6180a70d9886b443d7203c2c)

Co-authored-by: Declan <5962877+dec1@users.noreply.github.com>
20 months ago[3.12] gh-115142: Skip ``test__xxsubinterpreters`` if ``_testcapi`` is not available...
Kirill Podoprigora [Sat, 9 Mar 2024 14:06:24 +0000 (16:06 +0200)] 
[3.12] gh-115142: Skip ``test__xxsubinterpreters`` if ``_testcapi`` is not available (#116543)

20 months ago[3.12] gh-116520: Fix error handling in `os_get_terminal_size_impl` in `posixmodule...
Miss Islington (bot) [Sat, 9 Mar 2024 11:36:02 +0000 (12:36 +0100)] 
[3.12] gh-116520: Fix error handling in `os_get_terminal_size_impl` in `posixmodule` (GH-116521) (#116539)

gh-116520: Fix error handling in `os_get_terminal_size_impl` in `posixmodule` (GH-116521)
(cherry picked from commit b4b4e764a798bab60324871074ce4cdebb9d01bb)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] GH-116218 Docs: Add availability information for the 'resource' module (GH...
Miss Islington (bot) [Sat, 9 Mar 2024 09:35:01 +0000 (10:35 +0100)] 
[3.12] GH-116218 Docs: Add availability information for the 'resource' module (GH-116256) (#116533)

GH-116218 Docs: Add availability information for the 'resource' module (GH-116256)

Add availability data to 'resource' module Docs
(cherry picked from commit 03f86b1b626ac5b0df1cc74d8f80ea11117aec8c)

Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
20 months ago[3.12] gh-105535 Document potential performance trap during enum creation (GH-107119...
Miss Islington (bot) [Sat, 9 Mar 2024 00:56:58 +0000 (01:56 +0100)] 
[3.12] gh-105535 Document potential performance trap during enum creation (GH-107119) (GH116511)

(cherry picked from commit 601f3a7b3391e9d219a8ec44a6c56d00ce584d2a)

Co-authored-by: Nicolas A. Oyarzabal <79150521+nicky-eng@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
20 months ago[3.12] gh-116447: Fix possible UB in `arraymodule` and `getargs` (GH-116459) (#116496)
Miss Islington (bot) [Fri, 8 Mar 2024 11:22:07 +0000 (12:22 +0100)] 
[3.12] gh-116447: Fix possible UB in `arraymodule` and `getargs` (GH-116459) (#116496)

gh-116447: Fix possible UB in `arraymodule` and `getargs` (GH-116459)
(cherry picked from commit fdb2d90a274158aee23b526d972172bf41bd4b7e)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] gh-116485: Fixed the typo (GH-116486) (#116489)
Miss Islington (bot) [Fri, 8 Mar 2024 08:24:40 +0000 (09:24 +0100)] 
[3.12] gh-116485: Fixed the typo (GH-116486) (#116489)

Co-authored-by: Varun Gole <59524264+varungole@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
20 months ago[3.12] gh-116040: [Enum] fix by-value calls when second value is falsey (GH-116072...
Ethan Furman [Thu, 7 Mar 2024 23:26:13 +0000 (15:26 -0800)] 
[3.12] gh-116040: [Enum] fix by-value calls when second value is falsey (GH-116072) (GH-116476)

e.g. Cardinal(1, 0)

(cherry picked from commit 13ffd4bd9f529b6a5fe33741fbd57f14b4b80137)

20 months agogh-116472: Replace literal newlines with escape characters in MSBuild files (GH-116473)
Miss Islington (bot) [Thu, 7 Mar 2024 22:33:19 +0000 (23:33 +0100)] 
gh-116472: Replace literal newlines with escape characters in MSBuild files (GH-116473)

(cherry picked from commit 5d0cdfe519e6f35ccae1a1adca1ffd7fac10cee0)

Co-authored-by: Dan Albert <dan@gingerhq.net>
20 months ago[3.12] gh-115421: List all test subdirs in Makefile, and test them (GH-115813) (...
Petr Viktorin [Thu, 7 Mar 2024 14:55:57 +0000 (15:55 +0100)] 
[3.12] gh-115421: List all test subdirs in Makefile, and test them (GH-115813) (#116462)

* gh-115421: Test that our Makefile has all needed test folders (GH-115813)

* Update the list of installed test subdirectories

---------

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] gh-116448: Handle errors correctly in `os_waitid_impl` in `posixmodule` (GH...
Miss Islington (bot) [Thu, 7 Mar 2024 09:03:28 +0000 (10:03 +0100)] 
[3.12] gh-116448: Handle errors correctly in `os_waitid_impl` in `posixmodule` (GH-116449) (#116451)

gh-116448: Handle errors correctly in `os_waitid_impl` in `posixmodule` (GH-116449)
(cherry picked from commit 882fcede83af783a834b759e4643130dc1307ee3)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] gh-115664: Fix ordering of more versionadded and versionchanged directives...
Serhiy Storchaka [Thu, 7 Mar 2024 08:21:25 +0000 (10:21 +0200)] 
[3.12] gh-115664: Fix ordering of more versionadded and versionchanged directives (GH-116298) (GH-116450)

(cherry picked from commit 808a77612fb89b125d25efac2788522a100e8a6d)

20 months ago[3.12] gh-88118: Fix some test_multiprocessing flakiness. (GH-116434) (GH-116440)
Miss Islington (bot) [Wed, 6 Mar 2024 22:13:49 +0000 (23:13 +0100)] 
[3.12] gh-88118: Fix some test_multiprocessing flakiness. (GH-116434) (GH-116440)

Fix some test_multiprocessing flakiness.

Potentially introduced by https://github.com/python/cpython/pull/25845

not joining that thread likely leads to recently observed "environment
changed" logically passing but overall failing tests seen on some
buildbots similar to:

```
1 test altered the execution environment (env changed):
    test.test_multiprocessing_fork.test_processes

2 re-run tests:
    test.test_multiprocessing_fork.test_processes
    test.test_multiprocessing_forkserver.test_processes
```
(cherry picked from commit ea1803e608a7aaf9cf2c07e510d8540d46d3b9ad)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
20 months ago[3.12] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) (GH...
Sebastian Pipping [Wed, 6 Mar 2024 22:01:45 +0000 (23:01 +0100)] 
[3.12] gh-115398: Expose Expat >=2.6.0 reparse deferral API (CVE-2023-52425) (GH-115623) (GH-116248)

Allow controlling Expat >=2.6.0 reparse deferral (CVE-2023-52425) by adding five new methods:

- `xml.etree.ElementTree.XMLParser.flush`
- `xml.etree.ElementTree.XMLPullParser.flush`
- `xml.parsers.expat.xmlparser.GetReparseDeferralEnabled`
- `xml.parsers.expat.xmlparser.SetReparseDeferralEnabled`
- `xml.sax.expatreader.ExpatParser.flush`

Based on the "flush" idea from https://github.com/python/cpython/pull/115138#issuecomment-1932444270 .

- Please treat as a security fix related to CVE-2023-52425.

(cherry picked from commit 6a95676bb526261434dd068d6c49927c44d24a9b)
(cherry picked from commit 73807eb634315f70a464a18feaae33d9e065de09)
(cherry picked from commit eda2963378a3c292cf6bb202bb00e94e46ee6d90)

---------

Includes code suggested-by: Snild Dolkow <snild@sony.com>
and by core dev Serhiy Storchaka.
Co-authored-by: Gregory P. Smith <greg@krypto.org>
20 months ago[3.12] gh-116143: Fix race condition in pydoc _start_server (GH-116144) (#116415)
Miss Islington (bot) [Wed, 6 Mar 2024 14:58:02 +0000 (15:58 +0100)] 
[3.12] gh-116143: Fix race condition in pydoc _start_server (GH-116144) (#116415)

gh-116143: Fix race condition in pydoc _start_server (GH-116144)
(cherry picked from commit 02ee475ee3ce9468d44758df2cd79df9f0926303)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
20 months ago[3.12] gh-116404: Handle errors correctly in `wait_helper` in `posixmodule` (GH-11640...
Miss Islington (bot) [Wed, 6 Mar 2024 09:05:45 +0000 (10:05 +0100)] 
[3.12] gh-116404: Handle errors correctly in `wait_helper` in `posixmodule` (GH-116405) (#116406)

gh-116404: Handle errors correctly in `wait_helper` in `posixmodule` (GH-116405)
(cherry picked from commit 22ccf13b332902142fe0c52c593f9efc152c7761)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2...
Brett Cannon [Tue, 5 Mar 2024 21:35:02 +0000 (13:35 -0800)] 
[3.12]  GH-116313: get WASI builds to run under wasmtime 18 w/ WASI 0.2/preview2 primitives (GH-116327) (GH-116373)

20 months ago[3.12] gh-115986: Fix inaccuracies in pprint docs (GH-116104) (#116382)
Miss Islington (bot) [Tue, 5 Mar 2024 21:20:51 +0000 (22:20 +0100)] 
[3.12] gh-115986: Fix inaccuracies in pprint docs (GH-116104) (#116382)

Amend wording after gh-116019 was merged.
(cherry picked from commit e205c5cd8f1a49d0ef126123312ee8a40d1416b6)

Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
20 months ago[3.12] chore: fix typos (#116345) (#116370)
Terry Jan Reedy [Tue, 5 Mar 2024 18:51:17 +0000 (13:51 -0500)] 
[3.12] chore: fix typos (#116345) (#116370)

Co-authored-by: cui fliter <imcusg@gmail.com>
(cherry picked from commit e7ba6e9dbe5433b4a0bcb0658da6a68197c28630)

20 months ago[3.12] gh-74668: Fix support of bytes in urllib.parse.parse_qsl() (GH-115771) (GH...
Miss Islington (bot) [Tue, 5 Mar 2024 17:51:35 +0000 (18:51 +0100)] 
[3.12] gh-74668: Fix support of bytes in urllib.parse.parse_qsl() (GH-115771) (GH-116366)

urllib.parse functions parse_qs() and parse_qsl() now support bytes
arguments containing raw and percent-encoded non-ASCII data.
(cherry picked from commit bdba8ef42b15e651dc23374a08143cc2b4c4657d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
20 months ago[3.12] gh-76511: Fix email.Message.as_string() for non-ASCII message with ASCII chars...
Miss Islington (bot) [Tue, 5 Mar 2024 17:27:22 +0000 (18:27 +0100)] 
[3.12] gh-76511: Fix email.Message.as_string() for non-ASCII message with ASCII charset (GH-116125) (GH-116364)

(cherry picked from commit f97f25ef5dfcdfec0d9a359fd970abd139cf3428)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
20 months agogh-115554: Improved logic for handling multiple existing py.exe launcher installs...
Miss Islington (bot) [Tue, 5 Mar 2024 16:47:03 +0000 (17:47 +0100)] 
gh-115554: Improved logic for handling multiple existing py.exe launcher installs (GH-115793)

(cherry picked from commit 9b7f253b55f10df03d43c8a7c2da40ea523ac7a1)

Co-authored-by: Steve Dower <steve.dower@python.org>
20 months ago[3.12] Fix the PyGetSetDef documentation (GH-116056) (GH-116363)
Miss Islington (bot) [Tue, 5 Mar 2024 16:16:50 +0000 (17:16 +0100)] 
[3.12] Fix the PyGetSetDef documentation (GH-116056) (GH-116363)

closure is not a function pointer, it is a user data pointer.
(cherry picked from commit df594011089a83d151ac7000954665536f3461b5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
20 months ago[3.12] gh-115777: Fix double versionadded directives (GH-116269) (GH-116361)
Miss Islington (bot) [Tue, 5 Mar 2024 16:00:40 +0000 (17:00 +0100)] 
[3.12] gh-115777: Fix double versionadded directives (GH-116269) (GH-116361)

(cherry picked from commit 0064dfa0919cc93257c351a609f99461f6e4e3ac)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
20 months ago[3.12] gh-116326: Handler errors correctly in `getwindowsversion` in `sysmodule`...
Miss Islington (bot) [Tue, 5 Mar 2024 15:52:15 +0000 (16:52 +0100)] 
[3.12] gh-116326: Handler errors correctly in `getwindowsversion` in `sysmodule` (GH-116339) (#116354)

* gh-116326: Handler errors correctly in `getwindowsversion` in `sysmodule` (GH-116339)
(cherry picked from commit c91bdf86ef1cf9365b61a46aa2e51e5d1932b00a)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] gh-116325: Raise `SyntaxError` rather than `IndexError` on ForwardRef with...
Miss Islington (bot) [Tue, 5 Mar 2024 10:08:27 +0000 (11:08 +0100)] 
[3.12] gh-116325: Raise `SyntaxError` rather than `IndexError` on ForwardRef with empty string arg (GH-116341) (#116347)

gh-116325: Raise `SyntaxError` rather than `IndexError` on ForwardRef with empty string arg (GH-116341)
(cherry picked from commit a29998a06bf75264c3faaeeec4584a5f75b45a1f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] gh-116265: Remove obsolete sentence. (GH-116284) (#116331)
Miss Islington (bot) [Mon, 4 Mar 2024 22:20:44 +0000 (23:20 +0100)] 
[3.12] gh-116265: Remove obsolete sentence. (GH-116284) (#116331)

Remove sentence in Tools/c-analyzer/README referring to deleted
ignore-globals.txt.
(cherry picked from commit 88b5c665ee1624af1bc5097d3eb2af090b9cabed)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
20 months ago[3.12] gh-115320: Refactor `get_hash_info` in `sysmodule.c` not to swallow errors...
Miss Islington (bot) [Mon, 4 Mar 2024 21:13:38 +0000 (22:13 +0100)] 
[3.12] gh-115320: Refactor `get_hash_info` in `sysmodule.c` not to swallow errors (GH-115321) (#116323)

gh-115320: Refactor `get_hash_info` in `sysmodule.c` not to swallow errors (GH-115321)
(cherry picked from commit 207030f5527d405940b79c10c1413c1e8ff696c1)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
20 months ago[3.12] Docs: update using/configure.rst (GH-116274) (#116276)
Hugo van Kemenade [Mon, 4 Mar 2024 20:57:27 +0000 (22:57 +0200)] 
[3.12] Docs: update using/configure.rst (GH-116274) (#116276)

20 months agogh-116116: Backport blake2 change to fix building with clang-cl on windows-i686 ...
Miss Islington (bot) [Mon, 4 Mar 2024 17:22:46 +0000 (18:22 +0100)] 
gh-116116: Backport blake2 change to fix building with clang-cl on windows-i686 (GH-116117)

(cherry picked from commit 9b9e819b5116302cb4e471763feb2764eb17dde8)

Co-authored-by: Yuriy Chernyshov <thegeorg@yandex-team.com>
20 months ago[3.12] Consistently spell out *predicate* instead of *pred*. (gh-116308) (gh-116312)
Miss Islington (bot) [Mon, 4 Mar 2024 16:18:52 +0000 (17:18 +0100)] 
[3.12] Consistently spell out *predicate* instead of *pred*. (gh-116308) (gh-116312)

20 months ago[3.12] GH-116271 Docs: provide clarification for object assignments in the Tutorial...
Miss Islington (bot) [Mon, 4 Mar 2024 12:28:43 +0000 (13:28 +0100)] 
[3.12] GH-116271 Docs: provide clarification for object assignments in the Tutorial section (GH-116283) (#116305)

Co-authored-by: Kerim Kabirov <39376984+Privat33r-dev@users.noreply.github.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
20 months agogh-104711: Add security warning to the CGIHTTPRequestHandler document (GH-115915)
AN Long [Mon, 4 Mar 2024 11:54:38 +0000 (19:54 +0800)] 
gh-104711: Add security warning to the CGIHTTPRequestHandler document (GH-115915)

(cherry picked from commit dac8ff4c401f75e65a5eef1514f2d7987e63bbfe)

20 months ago[3.12] gh-116296: Fix refleak in reduce_newobj() corner case (GH-116297) (#116299)
Miss Islington (bot) [Mon, 4 Mar 2024 10:04:44 +0000 (11:04 +0100)] 
[3.12] gh-116296: Fix refleak in reduce_newobj() corner case (GH-116297) (#116299)

(cherry picked from commit 17c4849981905fb1c9bfbb2b963b6ee12e3efb2c)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Brandt Bucher <brandtbucher@microsoft.com>
20 months ago[3.12] gh-116010: Remove link to deprecated PEP 6 in FAQ guide (GH-116246) (#116286)
Miss Islington (bot) [Sun, 3 Mar 2024 19:56:50 +0000 (20:56 +0100)] 
[3.12] gh-116010: Remove link to deprecated PEP 6 in FAQ guide (GH-116246) (#116286)

Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
20 months ago[3.12] gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282) ...
Miss Islington (bot) [Sun, 3 Mar 2024 19:42:22 +0000 (20:42 +0100)] 
[3.12] gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282) (#116285)

gh-116281: Remove wrong '\' from '\*' in some doc signatures (GH-116282)
(cherry picked from commit 4859ecb8609b51e2f6b8fb1b295e9ee0f83e1be6)

Co-authored-by: HarryLHW <123lhw321@gmail.com>
20 months ago[3.12] gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812...
Miss Islington (bot) [Sun, 3 Mar 2024 07:59:10 +0000 (08:59 +0100)] 
[3.12] gh-115809: Improve TimedRotatingFileHandler.getFilesToDelete() (GH-115812) (GH-116261)

Improve algorithm for computing which rolled-over log files to delete
in logging.TimedRotatingFileHandler. It is now reliable for handlers
without namer and with arbitrary deterministic namer that leaves
the datetime part in the file name unmodified.
(cherry picked from commit 87faec28c78f6fa8eaaebbd1ababf687c7508e71)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
20 months ago[3.12] gh-72971: Clarify the special no-TypeError behavior for equality (GH-110729...
Miss Islington (bot) [Sun, 3 Mar 2024 00:55:59 +0000 (01:55 +0100)] 
[3.12] gh-72971: Clarify the special no-TypeError behavior for equality (GH-110729) (#116254)

(cherry picked from commit 67f742e03aacb6217c5bb496e31f96dbf31c6f86)

Co-authored-by: Gouvernathor <44340603+Gouvernathor@users.noreply.github.com>
20 months ago[3.12] gh-114494: Change logging docstring to bool for exec_info (GH=114558) (GH...
Miss Islington (bot) [Sat, 2 Mar 2024 12:33:15 +0000 (13:33 +0100)] 
[3.12] gh-114494: Change logging docstring to bool for exec_info (GH=114558) (GH-114624)

(cherry picked from commit 07236f5b39a2e534cf190cd4f7c73300d209520b)

Co-authored-by: Tristan Pank <tristanpank@gmail.com>
20 months ago[3.12] GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) (GH-116231)
Miss Islington (bot) [Sat, 2 Mar 2024 01:11:41 +0000 (02:11 +0100)] 
[3.12] GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228) (GH-116231)

GH-115978: Disable `*readv()` and `*writev()` on WASI (GH-116228)

Wasmtime doesn't implement these functions in a way to pass test_posix (https://github.com/bytecodealliance/wasmtime/issues/7830).
(cherry picked from commit 5dc8c84d397110f9edfa56793ad8887b1f176d79)

Co-authored-by: Brett Cannon <brett@python.org>
20 months ago[3.12] gh-112281: Allow `Union` with unhashable `Annotated` metadata (GH-112283)...
Miss Islington (bot) [Fri, 1 Mar 2024 18:01:27 +0000 (19:01 +0100)] 
[3.12] gh-112281: Allow `Union` with unhashable `Annotated` metadata (GH-112283) (#116213)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
20 months ago[3.12] gh-116035: Document that both tzinfo and fold are ignored in comparisons if...
Miss Islington (bot) [Fri, 1 Mar 2024 17:26:17 +0000 (18:26 +0100)] 
[3.12] gh-116035: Document that both tzinfo and fold are ignored in comparisons if tzinfo is the same (GH-116187) (GH-116216)

This mostly restores information removed in c12240ed28aac6494750e00143bc550c4d6d8ad1 (GH-114749).
(cherry picked from commit 05b04903a14279421ecdc6522b8202822de6ebb5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
20 months ago[3.12] gh-88352: Fix logging.TimedRotatingFileHandler (GH-116191) (GH-116208)
Miss Islington (bot) [Fri, 1 Mar 2024 16:41:30 +0000 (17:41 +0100)] 
[3.12] gh-88352: Fix logging.TimedRotatingFileHandler (GH-116191) (GH-116208)

* Do not overwrite already rolled over files. It happened at midnight or
  during the DST change and caused the loss of data.
* computeRollover() now always return the timestamp larger than the
  specified time.
* Fix computation of the rollover time during the DST change.
(cherry picked from commit fee86fd9a422612b39e5aabf2571b8fe4abac770)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>