]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Mon, 7 Oct 2024 21:20:31 +0000 (23:20 +0200)]
[3.13] gh-63143: Fix parsing mutually exclusive arguments in argparse (GH-124307) (GH-124418)
Arguments with the value identical to the default value (e.g. booleans,
small integers, empty or 1-character strings) are no longer considered
"not present".
(cherry picked from commit
3094cd17b0e5ba69309c54964744c797a70aa11b )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 7 Oct 2024 21:12:28 +0000 (23:12 +0200)]
[3.13] gh-81691: Fix handling of multiple "--" (double dashes) in argparse (GH-124233) (GH-124266)
Only the first one has now been removed, all subsequent ones are now
taken literally.
(cherry picked from commit
aae126748ff3d442fdbcd07933855ffd7ae6f59c )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 7 Oct 2024 19:25:26 +0000 (21:25 +0200)]
[3.13] gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975) (#125061)
gh-122392: IDLE - Fix overlapping lines in browsers (GH-122392) (GH-124975)
Increase currently inadequate vertical spacing for the IDLE browsers (path,
module, and stack) on high-resolution monitors.
---------
(cherry picked from commit
c5df1cb7bde7e86f046196b0e34a0b90f8fc11de )
Co-authored-by: Zhikang Yan <2951256653@qq.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Mon, 7 Oct 2024 16:53:32 +0000 (18:53 +0200)]
[3.13] gh-112804: Clamping timeout value for _PySemaphore_PlatformWait (gh-124914) (gh-124991)
gh-112804: Clamping timeout value for _PySemaphore_PlatformWait (gh-124914)
* gh-112804: Clamping timeout value for _PySemaphore_PlatformWait
* Address code review
* nit
(cherry picked from commit
a5fc50994a3fae46d0c3d496c4e1d5e00548a1b8 )
Co-authored-by: Donghee Na <donghee.na@python.org>
Thomas Wouters [Mon, 7 Oct 2024 15:22:36 +0000 (17:22 +0200)]
Post 3.13.0
Thomas Wouters [Mon, 7 Oct 2024 04:58:58 +0000 (06:58 +0200)]
Python 3.13.0
Miss Islington (bot) [Mon, 7 Oct 2024 04:48:13 +0000 (06:48 +0200)]
[3.13] GH-109975: Announce final release in What's New in Python 3.13 (GH-125007) (#125033)
Prepare What's New in Python 3.13 for final release
(cherry picked from commit
31516c98dd7097047ba10da8dcf728c3d580f3d6 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 7 Oct 2024 04:43:16 +0000 (06:43 +0200)]
[3.13] gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026) (#125032)
gh-125025: `_thread` docs: fix/update the *caveats* list (GH-125026)
(cherry picked from commit
1e098dc766ba4f29a63da4f188fb214af7623365 )
Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Miss Islington (bot) [Sun, 6 Oct 2024 23:04:43 +0000 (01:04 +0200)]
[3.13] Doc: Simplify the definition of 'soft deprecated' (GH-124988) (#125029)
Doc: Simplify the definition of 'soft deprecated' (GH-124988)
(cherry picked from commit
feca4cf64e9742b9c002d5533ced47e68b34a880 )
Co-authored-by: Andrés Delfino <adelfino@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Miss Islington (bot) [Sun, 6 Oct 2024 13:39:47 +0000 (15:39 +0200)]
[3.13] gh-125008: Fix `tokenize.untokenize` roundtrip for `\n{{` (GH-125013) (#125020)
Miss Islington (bot) [Fri, 4 Oct 2024 22:34:20 +0000 (00:34 +0200)]
[3.13] gh-124871: fix 'visited' tracking in compiler's reachability analysis (GH-124952) (#124977)
gh-124871: fix 'visited' tracking in compiler's reachability analysis (GH-124952)
(cherry picked from commit
f474391b26aa9208b44ca879f8635409d322f738 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Fri, 4 Oct 2024 22:31:51 +0000 (00:31 +0200)]
[3.13] gh-109975: Suggest ``pynntp`` instead of ``nntplib`` (GH-124830) (#124966)
gh-109975: Suggest ``pynntp`` instead of ``nntplib`` (GH-124830)
The ``nntplib`` library has been deleted from PyPI by its author.
(cherry picked from commit
ac9648243dc0f5cb34c93621e507a98cf90550ea )
Co-authored-by: Christian Clauss <cclauss@me.com>
Miss Islington (bot) [Thu, 3 Oct 2024 16:27:28 +0000 (18:27 +0200)]
[3.13] gh-121982: ``csv``: Add a test case for invalid ``quoting`` constant. (GH-121983) (#124926)
gh-121982: ``csv``: Add a test case for invalid ``quoting`` constant. (GH-121983)
Test invalid quoting constant
(cherry picked from commit
656b7a3c83c79f99beac950b59c47575562ea729 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Miss Islington (bot) [Thu, 3 Oct 2024 16:26:15 +0000 (18:26 +0200)]
[3.13] gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-124845) (#124884)
gh-122864: Fix a ``test_funcattrs.test___builtins__`` when executing directly (GH-124845)
Previously when executing ``test_functattrs.test___builtins__`` directly, it failed because the fact, that ``__builtins__`` is refers to the built-in module ``builtins`` while it's expects a ``__builtins__.__dict__``. But when this test is being run from another module, then ``__builtins__`` is refers to ``builtins.__dict__``. Now this part of the behaviour is covered.
---------
(cherry picked from commit
8fbf10d6cfd9c69ffcc1f80fa0c5f33785197af7 )
Co-authored-by: Mark Byrne <31762852+mbyrnepr2@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Thu, 3 Oct 2024 16:25:12 +0000 (18:25 +0200)]
[3.13] Highlight `datetime.timedelta.seconds` vs `.total_seconds()` in docs. (GH-124811) (#124862)
Highlight `datetime.timedelta.seconds` vs `.total_seconds()` in docs. (GH-124811)
Thanks to the reviewers for suggesting the use of a "caution" section instead of "warning" or "note".
(cherry picked from commit
d150e4abcfc13770c2d239878ed337fb53e51de5 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Thu, 3 Oct 2024 16:24:42 +0000 (18:24 +0200)]
[3.13] gh-124370: Add "howto" for free-threaded Python (GH-124371) (#124860)
gh-124370: Add "howto" for free-threaded Python (GH-124371)
(cherry picked from commit
68e384c2179fba41bc3be469e6ef34927a37f4a5 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: mpage <mpage@cs.stanford.edu>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Miss Islington (bot) [Thu, 3 Oct 2024 16:21:38 +0000 (18:21 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: Link to installing free-threaded binaries on macOS (GH-124831) (#124833)
GH-109975: Copyedit 3.13 What's New: Link to installing free-threaded binaries on macOS (GH-124831)
(cherry picked from commit
4129a74a3772a2fa75a3b8f642f6b4cf18520e0e )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Thu, 3 Oct 2024 16:20:28 +0000 (18:20 +0200)]
[3.13] GH-109975: Copyedit 3.13 What's New: Note delayed expected release date for Python 3.13.0 (GH-124827) (#124828)
GH-109975: Copyedit 3.13 What's New: Note delayed expected release date for Python 3.13.0 (GH-124827)
Note delayed expected release date of 3.13.0
(cherry picked from commit
882369026481f904520784ebbbef9897059dc6f6 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Thu, 3 Oct 2024 16:19:14 +0000 (18:19 +0200)]
[3.13] Doc: Fix archive filenames for standard builds (GH-124826) (#124836)
Doc: Fix archive filenames for standard builds (GH-124826)
(cherry picked from commit
91e64be731fe42e6b252b95d79d900251388bfc6 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Thu, 3 Oct 2024 15:54:56 +0000 (17:54 +0200)]
[3.13] gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920) (#124930)
gh-115145: Update documentation about ``PyThreadState_DeleteCurrent`` (gh-124920)
(cherry picked from commit
9eeb21bf761070649bf8d78976a62dabb6d67a99 )
Co-authored-by: Donghee Na <donghee.na@python.org>
Thomas Wouters [Tue, 1 Oct 2024 14:15:44 +0000 (16:15 +0200)]
Post 3.13.0rc3
Thomas Wouters [Tue, 1 Oct 2024 01:59:28 +0000 (03:59 +0200)]
Python 3.13.0rc3
Jelle Zijlstra [Tue, 1 Oct 2024 01:53:17 +0000 (18:53 -0700)]
[3.13] gh-124442: make `__static_attributes__` deterministic by sorting (GH-124492) (#124738)
* [3.13] gh-124442: make `__static_attributes__` deterministic by sorting (GH-124492)
(cherry picked from commit
04c837d9d8a474777ef9c1412fbba14f0682366c )
Co-authored-by: Kira <kp2pml30@gmail.com>
Signed-off-by: kp2pml30 <kp2pml30@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 1 Oct 2024 01:38:26 +0000 (03:38 +0200)]
[3.13] gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned strings (gh-124646)" (gh-124807) (#124812)
gh-124785: Revert "gh-116510: Fix crash due to shared immortal interned strings (gh-124646)" (gh-124807)
Revert "gh-116510: Fix crash due to shared immortal interned strings. (gh-124646)"
This reverts commit
98b2ed7e239c807f379cd2bf864f372d79064aac .
(cherry picked from commit
7bdfabe2d1ec353ecdc75a5aec41cce83e572391 )
Co-authored-by: T. Wouters <thomas@python.org>
T. Wouters [Mon, 30 Sep 2024 21:27:29 +0000 (14:27 -0700)]
[3.13] GH-124567: Revert the Incremental GC in 3.13 (#124770)
Revert the incremental GC in 3.13, since it's not clear that without further turning, the benefits outweigh the costs.
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 20:59:53 +0000 (22:59 +0200)]
[3.13] Doc: Run HTML and non-HTML daily builds separately (GH-124493) (#124790)
Doc: Run HTML and non-HTML daily builds separately (GH-124493)
(cherry picked from commit
cce1125574f7b74343afda4bd0030706f67e13df )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 20:52:59 +0000 (22:52 +0200)]
[3.13] gh-124613, regrtest: Detect JIT in build info (GH-124793) (#124797)
gh-124613, regrtest: Detect JIT in build info (GH-124793)
(cherry picked from commit
e44eebfc1eccdaaebc219accbfc705c9a9de068d )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 30 Sep 2024 20:51:24 +0000 (22:51 +0200)]
[3.13] gh-124642: Dictionaries aren't marking objects as weakref'd (GH-124643) (#124798)
gh-124642: Dictionaries aren't marking objects as weakref'd (GH-124643)
Dictionaries aren't marking objects as weakref'd
(cherry picked from commit
077e7ef6a0abbf9e04b9aa11b4f621031004c31f )
Co-authored-by: Dino Viehland <dinoviehland@meta.com>
Miss Islington (bot) [Mon, 30 Sep 2024 04:23:06 +0000 (06:23 +0200)]
[3.13] Doc: Fix default ``latex_elements['papersize']`` (GH-124525) (#124725)
Doc: Fix default ``latex_elements['papersize']`` (GH-124525)
https://www.sphinx-doc.org/en/master/latex.htmlGH-the-latex-elements-configuration-setting
It should be 'letterpaper' or 'a4paper' not 'letter' or 'a4'
(not to be confused with PAPER env variable).
(cherry picked from commit
fae5058ec13aa3b4f1acc549fadfbbbc2628f1e9 )
Co-authored-by: Jean-François B <2589111+jfbu@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 04:22:13 +0000 (06:22 +0200)]
[3.13] gh-123811: test that round() can return signed zero (GH-123829) (#123938)
gh-123811: test that round() can return signed zero (GH-123829)
(cherry picked from commit
d2b9b6f919e92184420c8e13d078e83447ce7917 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Serhiy Storchaka [Mon, 30 Sep 2024 04:21:40 +0000 (07:21 +0300)]
[3.13] gh-123339: Fix cases of inconsistency of __module__ and __firstlineno__ in classes (GH-123613) (#124735)
* Setting the __module__ attribute for a class now removes the
__firstlineno__ item from the type's dict.
* The _collections_abc and _pydecimal modules now completely replace the
collections.abc and decimal modules after importing them. This
allows to get the source of classes and functions defined in these
modules.
* inspect.findsource() now checks whether the first line number for a
class is out of bound.
(cherry picked from commit
69a4063ca516360b5eb96f5432ad9f9dfc32a72e )
Miss Islington (bot) [Mon, 30 Sep 2024 04:18:24 +0000 (06:18 +0200)]
[3.13] gh-124722: Fix leak in `test_detach_materialized_dict_no_memory` (GH-124769) (#124777)
gh-124722: Fix leak in `test_detach_materialized_dict_no_memory` (GH-124769)
(cherry picked from commit
6f4d64b048133c60d40705fb5ef776f78c7dd710 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 30 Sep 2024 01:58:09 +0000 (03:58 +0200)]
[3.13] gh-123826: Fix unused function warnings in mimalloc on NetBSD (GH-123827) (#123875)
gh-123826: Fix unused function warnings in mimalloc on NetBSD (GH-123827)
(cherry picked from commit
4a6b1f179667e2a8c6131718eb78a15f726e047b )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Sergey B Kirpichev [Mon, 30 Sep 2024 01:27:23 +0000 (04:27 +0300)]
[3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071) (#123840)
* [3.13] gh-121039: add Floats/ComplexesAreIdenticalMixin to test.support.testcase (GH-121071)
(cherry picked from commit
8ef8354ef15e00d484ac2ded9442b789c24b11e0 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
* +1
Miss Islington (bot) [Mon, 30 Sep 2024 01:26:50 +0000 (03:26 +0200)]
[3.13] gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824) (#123864)
gh-123823: Fix test_posix for unsupported posix_fallocate on NetBSD (GH-123824)
Fix test_posix for unsupported posix_fallocate on NetBSD.
(cherry picked from commit
df4f0cbfad8a1ed0146cabd30d01efd135d4d048 )
Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:25:09 +0000 (03:25 +0200)]
[3.13] gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918) (#123921)
gh-123915: Ensure that Windows AMD64 and ARM64 release builds use different directories (GH-123918)
(cherry picked from commit
00ffdf27367fb9aef247644a96f1a9ffb5be1efe )
Co-authored-by: adang1345 <adang1345@gmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:24:55 +0000 (03:24 +0200)]
[3.13] gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893) (#123896)
gh-123892: Add "_wmi" to sys.stdlib_module_names (GH-123893)
(cherry picked from commit
fb1b51a58df4315f7ef3171a5abeb74f132b0971 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 30 Sep 2024 01:24:40 +0000 (03:24 +0200)]
[3.13] gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886) (#123890)
gh-123881: Add additional test coverage for PEP 695 edge cases (GH-123886)
(cherry picked from commit
b52de7e02dba9e1f176d6d978d782fbd0509311e )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:23:42 +0000 (03:23 +0200)]
[3.13] gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898) (#123936)
gh-77894: Fix a crash when the GC breaks a loop containing a memoryview (GH-123898)
Now a memoryview object can only be cleared if there are no buffers
that refer it.
(cherry picked from commit
a1dbf2ea69acc6ccee6292709af1dadd55c068be )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:22:15 +0000 (03:22 +0200)]
[3.13] gh-123919: Fix null handling in `_freeze_module.c` (GH-123920) (#123948)
gh-123919: Fix null handling in `_freeze_module.c` (GH-123920)
(cherry picked from commit
c8d1dbef5b770b647aa7ff45fd5b269bc7629d0b )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 30 Sep 2024 01:21:57 +0000 (03:21 +0200)]
[3.13] gh-123942: add missing test for docstring-handling code in ast_opt.c (GH-123943) (#123955)
gh-123942: add missing test for docstring-handling code in ast_opt.c (GH-123943)
(cherry picked from commit
6e23c89fcdd02b08fa6e9fa70d6e90763ddfc327 )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:17:16 +0000 (03:17 +0200)]
[3.13] gh-121735: Fix module-adjacent references in zip files (GH-123037) (#123986)
* gh-121735: Fix module-adjacent references in zip files (GH-123037)
* gh-116608: Apply style and compatibility changes from importlib_metadata.
* gh-121735: Ensure module-adjacent resources are loadable from a zipfile.
* gh-121735: Allow all modules to be processed by the ZipReader.
* Add blurb
* Remove update-zips script, unneeded.
* Remove unnecessary references to removed static fixtures.
* Remove zipdata fixtures, unused.
(cherry picked from commit
ba687d9481c04fd160795ff8d8568f5c9f877128 )
* gh-123994: Generate utf-16 file using little endian and BOM. (#123995)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:15:16 +0000 (03:15 +0200)]
[3.13] gh-116622: Mock the passage of time in Android logcat rate limit tests (GH-124015) (#124035)
gh-116622: Mock the passage of time in Android logcat rate limit tests (GH-124015)
Mock the passage of time in Android logcat rate limit tests
(cherry picked from commit
f5548834256414c6a721e9ebfa511e043e73ef03 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:14:44 +0000 (03:14 +0200)]
[3.13] gh-123836: Check zero signs in math_testcases.txt (GH-123854) (#124161)
gh-123836: Check zero signs in math_testcases.txt (GH-123854)
Just like cmath_testcases.txt. These tests require IEEE 754 anyway.
Correct zero sign for sqrt tests to match math.h convention.
(cherry picked from commit
28aea5d07d163105b42acd81c1651397ef95ea57 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Sergey B Kirpichev [Mon, 30 Sep 2024 01:14:02 +0000 (04:14 +0300)]
[3.13] gh-123836: workaround fmod(x, y) bug on Windows (GH-124171) (#124187)
Buildbot failure on Windows 10 with MSC v.1916 64 bit (AMD64):
FAIL: testFmod (test.test_math.MathTests.testFmod)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_math.py", line 605, in testFmod
self.ftest('fmod(-10, 1)', math.fmod(-10, 1), -0.0)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\buildarea\3.x.bolen-windows10\build\Lib\test\test_math.py", line 258, in ftest
self.fail("{}: {}".format(name, failure))
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: fmod(-10, 1): expected -0.0, got 0.0 (zero has wrong sign)
Here Windows loose sign of the result; if y is nonzero, the result
should have the same sign as x.
This amends commit
28aea5d07d .
(cherry picked from commit
f4dd4402108cc005d45acd4ca83c8530c36a93ca )
Miss Islington (bot) [Mon, 30 Sep 2024 01:13:36 +0000 (03:13 +0200)]
[3.13] gh-122145: Handle an empty AST body when reporting tracebacks (GH-122161) (#124214)
gh-122145: Handle an empty AST body when reporting tracebacks (GH-122161)
(cherry picked from commit
5cd50cb6eb28e525f0c838e049e900ea982a5a23 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:13:13 +0000 (03:13 +0200)]
[3.13] gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204) (#124216)
gh-124064: Fix -Wconversion warnings in Parser/string_parser.c (GH-124204)
Fix integer overflow check in decode_unicode_with_escapes(): use
PY_SSIZE_T_MAX instead of SIZE_MAX.
(cherry picked from commit
f9fa6ba4f8d90ae12bc1f6a792d66903bb169ba8 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 30 Sep 2024 01:11:22 +0000 (03:11 +0200)]
[3.13] gh-124212: Fix undefined variable in error message in venv (GH-124211) (#124226)
gh-124212: Fix undefined variable in error message in venv (GH-124211)
(cherry picked from commit
ea7fe1fe2e162f2375562467ad834c6224a62daf )
Co-authored-by: Jacek <jacek.duszenko@gmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:11:03 +0000 (03:11 +0200)]
[3.13] gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038) (#124231)
gh-123934: Fix `MagicMock` not to reset magic method return values (GH-124038)
(cherry picked from commit
7628f67d55cb65bad9c9266e0457e468cd7e3775 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 30 Sep 2024 01:07:04 +0000 (03:07 +0200)]
[3.13] gh-124245: Fix UserWarning in test_argparse (GH-124246) (#124255)
gh-124245: Fix UserWarning in test_argparse (GH-124246)
(cherry picked from commit
992e8f6102e317b4967a762fbefea82f9fcf9dfb )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:06:53 +0000 (03:06 +0200)]
[3.13] gh-123797: Check for runtime availability of `ptsname_r` on macos (GH-123806) (#124270)
gh-123797: Check for runtime availability of `ptsname_r` on macos (GH-123806)
(cherry picked from commit
3e36e5aef18e326f5d1081d73ee8d8fefa1d82f8 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Mon, 30 Sep 2024 01:06:32 +0000 (03:06 +0200)]
[3.13] gh-124248: Fix crash in struct when processing 0p fields (GH-124251) (#124277)
gh-124248: Fix crash in struct when processing 0p fields (GH-124251)
(cherry picked from commit
63f196090f90cbfe5f698824655f74dea5cb2b29 )
Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:06:11 +0000 (03:06 +0200)]
[3.13] gh-124254: Detect freethreaded MSI component when doing an upgrade on Windows (GH-124279) (#124347)
gh-124254: Detect freethreaded MSI component when doing an upgrade on Windows (GH-124279)
(cherry picked from commit
df7228ce140ecb005d44a0c171ba4d098b3fa67c )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Mon, 30 Sep 2024 01:05:51 +0000 (03:05 +0200)]
[3.13] GH-87041: Fix incorrect indentation in argparse help (GH-124230) (#124373)
GH-87041: Fix incorrect indentation in argparse help (GH-124230)
In case of usage a long command along with max_help_position more than
the length of the command, the command's help was incorrectly started
on the new line.
(cherry picked from commit
7ee99217345af3010bf05b1f5241c661a5e0ea9b )
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Pavel Ditenbir <pavel.ditenbir@gmail.com>
Alex Waygood [Mon, 30 Sep 2024 01:04:56 +0000 (02:04 +0100)]
[3.13] Bump Ruff to 0.6.7 (#124384) (#124389)
Bump Ruff to 0.6.7 (#124384)
Miss Islington (bot) [Mon, 30 Sep 2024 01:03:29 +0000 (03:03 +0200)]
[3.13] bpo-44864: Do not translate user-provided strings in ArgumentParser.add_subparsers() (GH-27667) (#124506)
bpo-44864: Do not translate user-provided strings in ArgumentParser.add_subparsers() (GH-27667)
Call _() on literal strings only.
(cherry picked from commit
d3c76dff444046504754a437dceebc9a9c87ef18 )
Co-authored-by: Jérémie Detrey <jdetrey@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:03:12 +0000 (03:03 +0200)]
[3.13] gh-116622: Make test_unzip_zipfile recognize Android error message format (GH-124462) (#124516)
gh-116622: Make test_unzip_zipfile recognize Android error message format (GH-124462)
Make test_unzip_zipfile recognize Android error message format
(cherry picked from commit
461c12b43870d51ea29eae7b0969b20565d50eb6 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:03:00 +0000 (03:03 +0200)]
[3.13] gh-124513: Check args in framelocalsproxy_new() (GH-124515) (#124539)
gh-124513: Check args in framelocalsproxy_new() (GH-124515)
Fix a crash in FrameLocalsProxy constructor: check the number of
arguments.
(cherry picked from commit
d6954b6421aa34afd280df9c44ded21a2348a6ea )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 30 Sep 2024 01:02:42 +0000 (03:02 +0200)]
[3.13] gh-124378: Update test_ttk for Tcl/Tk 8.6.15 (GH-124542) (#124544)
gh-124378: Update test_ttk for Tcl/Tk 8.6.15 (GH-124542)
(cherry picked from commit
fb6bd31cb74d2f7e7b525ee4fe9f45475fc94ce9 )
Co-authored-by: Zachary Ware <zach@python.org>
Co-authored-by: Marc Culler <culler@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 01:01:06 +0000 (03:01 +0200)]
[3.13] gh-124498: Fix `TypeAliasType` not to be generic, when `type_params=()` (GH-124499) (#124603)
gh-124498: Fix `TypeAliasType` not to be generic, when `type_params=()` (GH-124499)
(cherry picked from commit
abe5f799e6ce1d177f79554f1b84d348b6141045 )
Co-authored-by: sobolevn <mail@sobolevn.me>
Bénédikt Tran [Mon, 30 Sep 2024 01:00:42 +0000 (03:00 +0200)]
[3.13] gh-89683: add tests for `deepcopy` on frozen dataclasses (GH-123098) (#124678)
* gh-89683: add tests for `deepcopy` on frozen dataclasses (gh-123098)
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 00:59:54 +0000 (02:59 +0200)]
[3.13] gh-124385: Document and soft-deprecate PyLong_AS_LONG (GH-124386) (#124719)
gh-124385: Document and soft-deprecate PyLong_AS_LONG (GH-124386)
(cherry picked from commit
425587a110eb214a097c634d4b6d944ac478923e )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Mon, 30 Sep 2024 00:58:32 +0000 (02:58 +0200)]
[3.13] docs: improve venv docs (GH-124540) (#124727)
docs: improve venv docs (GH-124540)
- Move "versionchanged" notes that apply to the whole class to the
end of the class docs
- Remove or move notes next to the method list that apply to individual
methods.
- Mark up parameters using the appropriate syntax
- Do not capitalize "boolean"
- Shorten some text
(cherry picked from commit
c976d789a98047ae7ddec6d13c9ea7086d9fa3f9 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Irit Katriel [Mon, 30 Sep 2024 00:53:47 +0000 (01:53 +0100)]
[3.13] gh-124746: remove assertion on exits having line numbers (#124762)
gh-124746: remove assertion in 3.13
Miss Islington (bot) [Mon, 30 Sep 2024 00:53:13 +0000 (02:53 +0200)]
[3.13] Docs: improve generic `typing.NamedTuple` example (GH-124739) (#124764)
Docs: improve generic `typing.NamedTuple` example (GH-124739)
(cherry picked from commit
76fbee642e78eacf3866102f31e0ac969b57f1e6 )
Co-authored-by: CBerJun <121291537+CBerJun@users.noreply.github.com>
Miss Islington (bot) [Mon, 30 Sep 2024 00:52:31 +0000 (02:52 +0200)]
[3.13] gh-124720: Update "Using Python on a Mac" document (GH-124721) (#124775)
gh-124720: Update "Using Python on a Mac" document (GH-124721)
Update "Using Python on a Mac" section of the "Python Setup and Usage"
document and include information on installing free-threading support.
(cherry picked from commit
4b83c03ce964af7fb204144db9adaa524c113a82 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Fri, 27 Sep 2024 22:23:39 +0000 (00:23 +0200)]
[3.13] GH-124547: Clear instance dictionary if memory error occurs during object dealloc (GH-124627) (#124714)
GH-124547: Clear instance dictionary if memory error occurs during object dealloc (GH-124627)
(cherry picked from commit
0e21cc6cf820679439d72e3ebd06227ee2a085f9 )
Co-authored-by: Mark Shannon <mark@hotpy.org>
Emily Morehouse [Fri, 27 Sep 2024 22:21:58 +0000 (15:21 -0700)]
[3.13] gh-81263: Add assignment expressions to `help` (GH-124641) (#124713)
gh-81263: Add assignment expressions to `help` (#124641)
* Add assignment expression (:=) to `help`
* Update index for Assignment Expressions to include pair of `assignment; expression`
Miss Islington (bot) [Fri, 27 Sep 2024 22:20:44 +0000 (00:20 +0200)]
[3.13] doc: PyUnicode_AsUTF8String() fails if string contains surrogates (GH-124605) (#124707)
doc: PyUnicode_AsUTF8String() fails if string contains surrogates (GH-124605)
(cherry picked from commit
d8cf587dc749cf21eafc1064237970ee7460634f )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Fri, 27 Sep 2024 22:19:56 +0000 (00:19 +0200)]
[3.13] gh-120104: IDLE: Fix padding in config and search dialogs (GH-120107) (#122740)
gh-120104: IDLE: Fix padding in config and search dialogs (GH-120107)
(cherry picked from commit
4b66b6b7d6e65f9eb2d61435b9b37ffeb7bb00fb )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Terry Jan Reedy [Fri, 27 Sep 2024 22:19:44 +0000 (18:19 -0400)]
[3.13] Backport idlelib typos (#124325)
See #123597. The typo in Icon/README.txt was fixed
in the unmerged 3.13 backport #123608 of the
PR that added the text with the typo.
(cherry picked from commit
1f4a49e )
Co-authored-by: abstractee
Miss Islington (bot) [Fri, 27 Sep 2024 22:19:28 +0000 (00:19 +0200)]
[3.13] gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous output. (GH-124310) (#124318)
gh-112938: IDLE - Fix uninteruptable hang when Shell gets rapid continuous output. (GH-124310)
https://github.com/python/cpython/issues/88496 replaced text.update with text.update_idletasks in colorizer.py and outwin.py to fix test failures on macOS. While theoretically correct, the result was Shell freezing when receiving continuous short strings to print. Test: `while 1: 1`.
The guess is that there is no idle time in which to do the screen update. Reverting the change in one of the files,
outwin, fixes the issue. Colorizer runs ever 1/20 second and seems to work fine.
When running test-outwin on macOS, alias 'update'
to 'update_idletasks on the text used for testing.
(cherry picked from commit
d5f95ec07bb47a4d6554e04d13a979dbeac05f74 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 27 Sep 2024 21:28:30 +0000 (23:28 +0200)]
[3.13] gh-90190: Add doc for using `singledispatch` with precise collection type hints (GH-116544) (#124710)
gh-90190: Add doc for using `singledispatch` with precise collection type hints (GH-116544)
(cherry picked from commit
2357d5ba48cd9685cb36bcf92a0eaed86a85f4de )
Co-authored-by: Matt Delengowski <matt.delengowski@gmail.com>
Miss Islington (bot) [Fri, 27 Sep 2024 21:23:16 +0000 (23:23 +0200)]
[3.13] gh-124520: What's New entry for ctypes metaclass __new__/__init__ change (GH-124546) (#124708)
gh-124520: What's New entry for ctypes metaclass __new__/__init__ change (GH-124546)
(cherry picked from commit
3387f76b8f0b9f5ef89f9526c583bcc3dc36f486 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Fri, 27 Sep 2024 19:59:26 +0000 (21:59 +0200)]
[3.13] gh-124487: Update Windows API version to Windows 8.1 (GH-124676) (#124702)
gh-124487: Update Windows API version to Windows 8.1 (GH-124676)
(cherry picked from commit
a4916e6013e0870fd682b7967dce76667e8ba547 )
Co-authored-by: Steve Dower <steve.dower@python.org>
Miss Islington (bot) [Fri, 27 Sep 2024 19:58:36 +0000 (21:58 +0200)]
[3.13] gh-124609: Fix _Py_ThreadId for Windows builds using MinGW (GH-124663) (#124698)
gh-124609: Fix _Py_ThreadId for Windows builds using MinGW (GH-124663)
(cherry picked from commit
0881e2d3b1212d988733f1d3acca4011ce5e6280 )
Co-authored-by: Tony Roberts <tony@pyxll.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:53:35 +0000 (20:53 +0200)]
[3.13] GH-65961: Document the deprecation of `__package__` and `__cached__` (GH-124377) (#124380)
* GH-65961: Document the deprecation of `__package__` and `__cached__` (GH-124377)
The code changes for warning related to `__package__` landed in Python 3.12. `__cached__` doesn't have any changes as it isn't used but only set by the import system.
(cherry picked from commit
67201ad53ff11576c69a9b762540b77128285f8d )
---------
Co-authored-by: Brett Cannon <brett@python.org>
Co-authored-by: Barry Warsaw <barry@python.org>
Miss Islington (bot) [Fri, 27 Sep 2024 18:45:06 +0000 (20:45 +0200)]
[3.13] gh-124628: Pyrepl inputs on Windows shouldn't always be blocking reads (GH-124629) (#124638)
gh-124628: Pyrepl inputs on Windows shouldn't always be blocking reads (GH-124629)
(cherry picked from commit
83e5dc0f4d0d8d71288f162840b36f210fb03abf )
Co-authored-by: Dino Viehland <dinoviehland@meta.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:34:48 +0000 (20:34 +0200)]
[3.13] gh-119004: fix a crash in equality testing between `OrderedDict` (GH-121329) (#124507)
gh-119004: fix a crash in equality testing between `OrderedDict` (GH-121329)
(cherry picked from commit
38a887dc3ec52c4a7222279bf4b3ca2431b86de9 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:28:02 +0000 (20:28 +0200)]
[3.13] gh-124682: Disable test that is prone to intermittent failure on iOS. (GH-124683) (#124687)
gh-124682: Disable test that is prone to intermittent failure on iOS. (GH-124683)
Disable test that is prone to intermittent failure on iOS.
(cherry picked from commit
10d504aecc56f9481114fe3d0a8d1721d38db7e3 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:16:02 +0000 (20:16 +0200)]
[3.13] Docs: Update and proofread `library/venv.rst` (GH-124121) (#124644)
Docs: Update and proofread `library/venv.rst` (GH-124121)
(cherry picked from commit
23e812b84ae688a56a1011ed69a0d178c70e35ea )
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:15:25 +0000 (20:15 +0200)]
[3.13] gh-116510: Fix crash due to shared immortal interned strings. (gh-124646) (#124648)
gh-116510: Fix crash due to shared immortal interned strings. (gh-124646)
(cherry picked from commit
98b2ed7e239c807f379cd2bf864f372d79064aac )
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:11:02 +0000 (20:11 +0200)]
[3.13] gh-116510: Fix crash during sub-interpreter shutdown (gh-124645) (#124649)
gh-116510: Fix crash during sub-interpreter shutdown (gh-124645)
Fix a bug that can cause a crash when sub-interpreters use "basic"
single-phase extension modules. Shared objects could refer to PyGC_Head
nodes that had been freed as part of interpreter shutdown.
(cherry picked from commit
6f9525dd3f0ef5809106ca0923a7512d666a04bb )
Co-authored-by: Neil Schemenauer <nas-github@arctrix.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:09:15 +0000 (20:09 +0200)]
[3.13] gh-86673: Harden `test_ttk.test_element_create_image` (GH-123335) (#124654)
gh-86673: Harden `test_ttk.test_element_create_image` (GH-123335)
(cherry picked from commit
08e1bbe4a329e5961716f030c6ccfe92c736bf28 )
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:08:56 +0000 (20:08 +0200)]
[3.13] Docs: for for/else clarify that return or raise also skip the else (GH-124591) (#124659)
Docs: for for/else clarify that return or raise also skip the else (GH-124591)
(cherry picked from commit
5329d1b74a86b3a22ff36f7976bfe720ee06d10d )
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Fri, 27 Sep 2024 18:01:03 +0000 (20:01 +0200)]
[3.13] GH-95079: document error behaviour for some unicode C APIs (GH-95080) (#124661)
GH-95079: document error behaviour for some unicode C APIs (GH-95080)
(cherry picked from commit
b79a21ea429844e84509430e636d808ea9cff244 )
Co-authored-by: Max Bachmann <kontakt@maxbachmann.de>
Miss Islington (bot) [Fri, 27 Sep 2024 18:00:49 +0000 (20:00 +0200)]
[3.13] gh-123017: Add Android to the list of platforms where `strftime` doesn't support negative years (GH-124467) (#124674)
gh-123017: Add Android to the list of platforms where `strftime` doesn't support negative years (GH-124467)
Add Android to the list of platforms where `strftime` doesn't support negative years
(cherry picked from commit
0a3577bdfcb7132c92a3f7fb2ac231bc346383c0 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Alex Waygood [Fri, 27 Sep 2024 17:59:52 +0000 (10:59 -0700)]
[3.13] Fixup indentation for docs on `ModuleSpec` attributes (#124681) (#124685)
Fixup indentation for docs on `ModuleSpec` attributes (#124681)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Jelle Zijlstra [Thu, 26 Sep 2024 23:57:50 +0000 (16:57 -0700)]
[3.13] gh-123242: Note that type.__annotations__ may not exist (GH-124557) (#124569)
Closes GH-123242. The real criterion is that the attribute does not
exist on heap types, but I don't think we should discuss heap vs.
static types in the language reference.
(cherry picked from commit
99b23c64de301c9e77add6b0d8e60118ef807840 )
Miss Islington (bot) [Thu, 26 Sep 2024 20:56:06 +0000 (22:56 +0200)]
[3.13] gh-101100: Make __subclasses__ doctest stable (GH-124577) (#124579)
gh-101100: Make __subclasses__ doctest stable (GH-124577)
Using a standard library class makes this test difficult to maintain
as other tests and other parts of the stdlib may create subclasses,
which may still be alive when this test runs depending on GC timing.
(cherry picked from commit
08a467b537b3d9b499d060697e79b3950374ab0f )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Thu, 26 Sep 2024 20:55:32 +0000 (22:55 +0200)]
[3.13] gh-115528: Update language reference for PEP 646 (GH-121181) (#124632)
gh-115528: Update language reference for PEP 646 (GH-121181)
To recap: the objective is to make starred expressions valid in `subscription`,
which is used for generics: `Generic[...]`, `list[...]`, etc.
What _is_ gramatically valid in such contexts? Seemingly any of the following.
(At least, none of the following throw `SyntaxError` in a 3.12.3 REPL.)
Generic[x]
Generic[*x]
Generic[*x, y]
Generic[y, *x]
Generic[x := 1]
Generic[x := 1, y := 2]
So introducting
flexible_expression: expression | assignment_expression | starred_item
end then switching `subscription` to use `flexible_expression` sorts that.
But then we need to field `yield` - for which any of the following are
apparently valid:
yield x
yield x,
yield x, y
yield *x,
yield *x, *y
Introducing a separate `yield_list` is the simplest way I've been figure out to
do this - separating out the special case of `starred_item ,`.
(cherry picked from commit
7d3497f617edf77cb6ead6f5e62bce98d77b9ab8 )
Co-authored-by: Matthew Rahtz <matthew.rahtz@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Thu, 26 Sep 2024 20:55:08 +0000 (22:55 +0200)]
[3.13] Programming FAQ: Mention object.__setattr__ as a technique for delegation (GH-124617) (#124624)
Programming FAQ: Mention object.__setattr__ as a technique for delegation (GH-124617)
This is used for example by threading.local in the stdlib.
(cherry picked from commit
43979fad904bcc343f90cb526faa526c45fcbfa4 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Miss Islington (bot) [Thu, 26 Sep 2024 20:54:52 +0000 (22:54 +0200)]
[3.13] Doc: Use the short version for daily downloads (GH-124602) (#124610)
Doc: Use the short version for daily downloads (GH-124602)
(cherry picked from commit
2c472d36b776636fb00881a717f69e43672588b1 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Thu, 26 Sep 2024 20:52:37 +0000 (22:52 +0200)]
[3.13] gh-118181: Fix parameter markup in AST docs (GH-124473) (#124600)
gh-118181: Fix parameter markup in AST docs (GH-124473)
(cherry picked from commit
09aebb1fbc0c1d771d4942844d5e2077fcdf56c9 )
Co-authored-by: Tomas R <tomas.roun8@gmail.com>
Miss Islington (bot) [Thu, 26 Sep 2024 20:52:18 +0000 (22:52 +0200)]
[3.13] gh-123560: Correct docs for "empty" format type for floats (GH-123561) (#124596)
gh-123560: Correct docs for "empty" format type for floats (GH-123561)
(cherry picked from commit
274d9ab619b8150a613275835234ea9ef935f21f )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Miss Islington (bot) [Thu, 26 Sep 2024 20:51:58 +0000 (22:51 +0200)]
[3.13] gh-124538: Fix crash when using `gc.get_referents` on an untracked capsule object (GH-124559) (#124588)
gh-124538: Fix crash when using `gc.get_referents` on an untracked capsule object (GH-124559)
(cherry picked from commit
f923605658a29ff9af5a62edc1fc10191977627b )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Victor Stinner [Thu, 26 Sep 2024 20:44:36 +0000 (22:44 +0200)]
[3.13] gh-124402: Speed up test_free_threading and test_super (#124491) (#124585)
gh-124402: Speed up test_free_threading and test_super (#124491)
* Reduce the number of iterations and the number of threads so a
whole test file takes less than a minute.
* Refactor test_racing_iter_extend() to remove two levels of
indentation.
* test_monitoring() uses a sleep of 100 ms instead of 1 second.
(cherry picked from commit
0387c34f7c91428681ca8a4ba4e3d22b9acffde4 )
Miss Islington (bot) [Thu, 26 Sep 2024 20:39:01 +0000 (22:39 +0200)]
[3.13] gh-123856: Fix PyREPL failure when a keyboard interrupt is triggered after using a history search (GH-124396) (#124530)
gh-123856: Fix PyREPL failure when a keyboard interrupt is triggered after using a history search (GH-124396)
(cherry picked from commit
c1600c78e4565b6bb558ade451abe2648ba4dd0a )
Co-authored-by: Emily Morehouse <emily@cuttlesoft.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Malcolm Smith [Thu, 26 Sep 2024 20:36:12 +0000 (21:36 +0100)]
[3.13] gh-123014: Disable pidfd API on older Android versions (GH-124458) (#124543)
gh-123014: Disable pidfd API on older Android versions (#124458)
(cherry picked from commit
c58c572a65eb5b93d054e779df289e975a0b9864 )
Alex Waygood [Thu, 26 Sep 2024 00:29:48 +0000 (17:29 -0700)]
[3.13] gh-101100: Add a table of class attributes to the "Custom classes" section of the data model docs (#124480) (#124556)