]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Serhiy Storchaka [Thu, 8 Aug 2024 06:49:21 +0000 (09:49 +0300)]
[3.13] gh-118814: Fix the TypeVar constructor when name is passed by keyword (GH-122664) (GH-122806)
Fix _PyArg_UnpackKeywordsWithVararg for the case when argument for
positional-or-keyword parameter is passed by keyword.
There was only one such case in the stdlib -- the TypeVar constructor.
(cherry picked from commit
540fcc62f5da982b79504221cac01bfab8b73ba1 )
Miss Islington (bot) [Wed, 7 Aug 2024 16:18:08 +0000 (18:18 +0200)]
[3.13] Docs: Change `remove` to `removes` for consistency (GH-121072) (#122790)
Docs: Change `remove` to `removes` for consistency (GH-121072)
(cherry picked from commit
967a4f1d180d4cd669d5c6e3ac5ba99af4e72d4e )
Co-authored-by: smij720 <122238526+smij720@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Aug 2024 15:41:26 +0000 (17:41 +0200)]
[3.13] gh-122511: Improve documentation for object identity of mutable/immutable types (GH-122512) (#122778)
gh-122511: Improve documentation for object identity of mutable/immutable types (GH-122512)
(cherry picked from commit
76bdeebef6c6206f3e0af1e42cbfc75c51fbb8ca )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 7 Aug 2024 15:35:35 +0000 (17:35 +0200)]
[3.13] Doc: cmdline.rst: Include -P and -R in usage (GH-122590) (#122783)
Doc: cmdline.rst: Include -P and -R in usage (GH-122590)
* ``-P``: safe path (https://docs.python.org/3/using/cmdline.htmlGH-cmdoption-P)
* ``-R``: hash randomization (https://docs.python.org/3/using/cmdline.htmlGH-cmdoption-R)
(cherry picked from commit
c25898d51e4ec84319b7113d5bf453c6e6519d9c )
Co-authored-by: Wim Jeantine-Glenn <hey@wimglenn.com>
Miss Islington (bot) [Wed, 7 Aug 2024 12:59:03 +0000 (14:59 +0200)]
[3.13] gh-122581: Avoid data races when collecting parser statistics (GH-122694) (#122733)
gh-122581: Avoid data races when collecting parser statistics (GH-122694)
(cherry picked from commit
ce0d66c8d238c9676c6ecd3f04294a3299e07f74 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Tue, 6 Aug 2024 21:37:10 +0000 (23:37 +0200)]
[3.13] gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735) (#122757)
gh-122728: Fix SystemError in PyEval_GetLocals() (GH-122735)
Fix PyEval_GetLocals() to avoid SystemError ("bad argument to
internal function"). Don't redefine the 'ret' variable in the if
block.
Add an unit test on PyEval_GetLocals().
(cherry picked from commit
4767a6e31c0550836b2af45d27e374e721f0c4e6 )
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Tue, 6 Aug 2024 19:00:14 +0000 (21:00 +0200)]
[3.13] gh-122334: Fix test_embed failure when missing _ssl module (GH-122630) (#122647)
gh-122334: Fix test_embed failure when missing _ssl module (GH-122630)
(cherry picked from commit
50b36037518a8e7f7eee39b597d56b5b2756eb86 )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Co-authored-by: Wulian233 <1055917385@qq.com>
Miss Islington (bot) [Tue, 6 Aug 2024 18:57:02 +0000 (20:57 +0200)]
[3.13] gh-121103: Update site module docs for free-threaded installs (GH-122737) (#122750)
gh-121103: Update site module docs for free-threaded installs (GH-122737)
(cherry picked from commit
1429651a06611a9dbcb1928b746faf52934c12e2 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Pradyun Gedam [Tue, 6 Aug 2024 18:50:12 +0000 (19:50 +0100)]
[3.13] gh-122744: Bump bundled pip to 24.2 (#122746)
(cherry picked from commit
5b8a6c5186be299d96dd483146dc6ea737ffdfe7 )
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
Miss Islington (bot) [Tue, 6 Aug 2024 17:06:41 +0000 (19:06 +0200)]
[3.13] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122484)
gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233)
GH-GH- Encode header parts that contain newlines
Per RFC 2047:
> [...] these encoding schemes allow the
> encoding of arbitrary octet values, mail readers that implement this
> decoding should also ensure that display of the decoded data on the
> recipient's terminal will not cause unwanted side-effects
It seems that the "quoted-word" scheme is a valid way to include
a newline character in a header value, just like we already allow
undecodable bytes or control characters.
They do need to be properly quoted when serialized to text, though.
GH-GH- Verify that email headers are well-formed
This should fail for custom fold() implementations that aren't careful
about newlines.
(cherry picked from commit
097633981879b3c9de9a1dd120d3aa585ecc2384 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Bas Bloemsaat <bas@bloemsaat.org>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Tue, 6 Aug 2024 16:53:12 +0000 (18:53 +0200)]
[3.13] gh-122573: Require Python 3.10 or newer for Windows builds (GH-122574) (#122674)
gh-122573: Require Python 3.10 or newer for Windows builds (GH-122574)
Match statements in tooling require a more recent Python. Tools/cases_generator/*.py (and `Tools/jit/*.py` in 3.13+).
(cherry picked from commit
d0b92dd5ca46a10558857adeb7bb48ecf39fa783 )
Co-authored-by: Jonathan Protzenko <protz@microsoft.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Tue, 6 Aug 2024 06:46:14 +0000 (08:46 +0200)]
[3.13] Fix syntax in generate_re_casefix.py (GH-122699) (#122721)
This was broken in gh-97963.
(cherry picked from commit
b72c748d7fb4ecc0bc4626c7bc05fbc6c83f0ba8 )
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Sergey B Kirpichev [Mon, 5 Aug 2024 18:11:34 +0000 (21:11 +0300)]
[3.13] gh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-122280) (#122645)
[3.13] gh-122613: Document PyLong_GetInfo() (part of Limited API) (GH-GH-122280)
(cherry picked from commit
d91ac525ef166edc0083acf5a96f81b87324fe7f )
Miss Islington (bot) [Mon, 5 Aug 2024 09:37:16 +0000 (11:37 +0200)]
[3.13] gh-121367: [doc] BUILD_TUPLE arg can be 0 (GH-122663) (#122683)
gh-121367: [doc] BUILD_TUPLE arg can be 0 (GH-122663)
(cherry picked from commit
1422500d020bd199b26357fc387f8b79b82226cd )
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Miss Islington (bot) [Sun, 4 Aug 2024 17:21:25 +0000 (19:21 +0200)]
[3.13] Add `3.13` and remove `3.7` in Azure Pipelines (GH-122670) (#122671)
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Sun, 4 Aug 2024 12:09:22 +0000 (14:09 +0200)]
[3.13] gh-122623: Improve `c-api/bytearray.rst` with error handling info (GH-122624) (#122658)
gh-122623: Improve `c-api/bytearray.rst` with error handling info (GH-122624)
(cherry picked from commit
151934a324789c58cca9c7bbd6753d735454df5a )
Co-authored-by: sobolevn <mail@sobolevn.me>
Miss Islington (bot) [Sat, 3 Aug 2024 13:41:49 +0000 (15:41 +0200)]
[3.13] Doc: Grammar fix in ``library/ssl.rst``, 'Verifying certificates' (GH-122646) (#122649)
Doc: Grammar fix in ``library/ssl.rst``, 'Verifying certificates' (GH-122646)
(cherry picked from commit
06eb9701a182b4720dfa8766cb41cc5a3728a8b9 )
Co-authored-by: scottwoodall <scott.woodall@gmail.com>
Miss Islington (bot) [Sat, 3 Aug 2024 13:25:26 +0000 (15:25 +0200)]
[3.13] Doc: Improve wording of ``os.path.commonpath()`` (GH-122627) (#122641)
Doc: Improve wording of ``os.path.commonpath()`` (GH-122627)
(cherry picked from commit
7a5c4103b094aaf1b65af6de65795d172cfe8fe0 )
Co-authored-by: Matth-M <93771840+Matth-M@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Irit Katriel [Fri, 2 Aug 2024 18:26:57 +0000 (19:26 +0100)]
[3.13] gh-122445: populate only modified fields in __static_attributes__ (#122446) (#122621)
gh-122445: populate only modified fields in __static_attributes__ (#122446)
(cherry picked from commit
498376d7a7d6f704f22a2c963130cc15c17e7a6f )
Miss Islington (bot) [Fri, 2 Aug 2024 14:07:16 +0000 (16:07 +0200)]
[3.13] gh-122334: Fix crash when importing ssl after re-initialization (GH-122481) (#122614)
gh-122334: Fix crash when importing ssl after re-initialization (GH-122481)
* Fix crash when importing ssl after re-initialization
(cherry picked from commit
9fc1c992d6fcea0b7558c581846eef6bdd811f6c )
Co-authored-by: neonene <53406459+neonene@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Aug 2024 13:58:24 +0000 (15:58 +0200)]
[3.13] gh-120974: Make asyncio `swap_current_task` safe in free-threaded build (GH-122317) (#122612)
gh-120974: Make asyncio `swap_current_task` safe in free-threaded build (GH-122317)
* gh-120974: Make asyncio `swap_current_task` safe in free-threaded build
(cherry picked from commit
b5e6fb39a246bf7ee470d58632cdf588bb9d0298 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Fri, 2 Aug 2024 12:07:27 +0000 (14:07 +0200)]
[3.13] gh-121723: Relax constraints on queue objects for `logging.handlers.QueueHandler`. (GH-122154) (GH-122603)
(cherry picked from commit
fb864c76cd5e450e789a7b4095832e118cc49a39 )
T. Wouters [Fri, 2 Aug 2024 11:18:49 +0000 (13:18 +0200)]
[3.13] Add the Python 3.13 abidump, and enable the ABI check. (#122583)
dd the Python 3.13 abidump, and enable the ABI check.
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Fri, 2 Aug 2024 06:45:03 +0000 (08:45 +0200)]
[3.13] gh-122544: Change OS image in readthedocs.yml to ubuntu-24.04 (GH-122568) (#122593)
Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
Miss Islington (bot) [Thu, 1 Aug 2024 09:49:49 +0000 (11:49 +0200)]
[3.13] gh-122384: Mark strings from Download page for translation (GH-122385) (#122553)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Thomas Wouters [Thu, 1 Aug 2024 09:02:31 +0000 (11:02 +0200)]
Post 3.13.0rc1
Thomas Wouters [Wed, 31 Jul 2024 18:10:21 +0000 (20:10 +0200)]
Python 3.13.0rc1
T. Wouters [Wed, 31 Jul 2024 18:03:22 +0000 (20:03 +0200)]
[3.13] Update the expected bytecode magic number in test_importlib.test_util (#122513)
Update the expected bytecode magic number in test_importlib.test_util.
Petr Viktorin [Wed, 31 Jul 2024 09:31:44 +0000 (11:31 +0200)]
[3.13] gh-120906: Support arbitrary hashable keys in FrameLocalsProxy (GH-122309) (#122488)
[3.13] gh-120906: Support arbitrary hashable keys in FrameLocalsProxy (GH-122309)
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
(cherry picked from commit
5912487938ac4b517209082ab9e6d2d3d0fb4f4d )
Miss Islington (bot) [Wed, 31 Jul 2024 09:01:20 +0000 (11:01 +0200)]
[3.13] Move change detection to separate workflow in CI (GH-122336) (#122510)
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
Miss Islington (bot) [Wed, 31 Jul 2024 08:48:59 +0000 (10:48 +0200)]
[3.13] gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (GH-122493) (#122504)
gh-122133: Rework pure Python socketpair tests to avoid use of importlib.reload. (GH-122493)
(cherry picked from commit
f071f01b7b7e19d7d6b3a4b0ec62f820ecb14660 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Wed, 31 Jul 2024 07:20:20 +0000 (09:20 +0200)]
[3.13] Docs: bump Sphinx to 8.0 and update constraints (GH-122496) (#122499)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Wed, 31 Jul 2024 00:49:14 +0000 (02:49 +0200)]
[3.13] gh-116622: Fix testPyObjectPrintOSError on Android (GH-122487) (#122490)
gh-116622: Fix testPyObjectPrintOSError on Android (GH-122487)
Adds extra handling for way BSD/Android return errors from calls to fwrite.
(cherry picked from commit
82db5728136ebec3a1d221570b810b4128a21255 )
Co-authored-by: Malcolm Smith <smith@chaquo.com>
Miss Islington (bot) [Tue, 30 Jul 2024 22:54:01 +0000 (00:54 +0200)]
[3.13] GH-122482: Make About IDLE direct discussion to DPO (GH-122483) (#122485)
Currently, idle-dev@python.org and idle-dev mailing list
serve to collect spam (90+%). Change About IDLE to direct
discussions to discuss.python.org. Users are already
doing so.
(cherry picked from commit
29c04dfa2718dd25ad8b381a1027045b312f9739 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 30 Jul 2024 20:00:36 +0000 (22:00 +0200)]
[3.13] Remove outdated note about instance methods from datamodel.rst (GH-122471) (#122479)
Remove outdated note about instance methods from datamodel.rst (GH-122471)
(cherry picked from commit
c68cb8e0c9bd75ded25578c2fba6469e55a06e93 )
Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 19:34:22 +0000 (21:34 +0200)]
[3.13] gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217) (#122451)
gh-119896: Fix CTRL-Z behavior in the new REPL on Windows (GH-122217)
(cherry picked from commit
d1a1bca1f0550a4715f1bf32b1586caa7bc4487b )
Co-authored-by: Dino Viehland <dinoviehland@meta.com>
Miss Islington (bot) [Tue, 30 Jul 2024 18:18:25 +0000 (20:18 +0200)]
[3.13] gh-117657: Avoid race in `PAUSE_ADAPTIVE_COUNTER` in free-threaded build (GH-122190) (#122475)
The adaptive counter doesn't do anything currently in the free-threaded
build and TSan reports a data race due to concurrent modifications to
the counter.
(cherry picked from commit
2b163aa9e796b312bb0549d49145d26e4904768e )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 17:21:17 +0000 (19:21 +0200)]
[3.13] gh-116402: Avoid readline in test_builtin TTY input tests (GH-122447) (GH-122472)
(cherry picked from commit
1d8e45390733d3eb29164799ea10f8406f53e830 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Dino Viehland [Tue, 30 Jul 2024 16:13:31 +0000 (09:13 -0700)]
[3.13] gh-122208: Don't delivery PyDict_EVENT_ADDED until it can't fail (#122326)
Don't delivery PyDict_EVENT_ADDED until it can't fail
Miss Islington (bot) [Tue, 30 Jul 2024 15:54:56 +0000 (17:54 +0200)]
[3.13] gh-121946: Temporarily switch to llvm-17 in TSan CI again (GH-122466) (GH-122467)
The Ubuntu package for llvm-18 is broken
(cherry picked from commit
8fb88b22b7a932ff16002dd19e904f9cafd59e9f )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 09:24:35 +0000 (11:24 +0200)]
[3.13] gh-121474: Add threading.Barrier parties arg sanity check. (GH-121480) (GH-122444)
(cherry picked from commit
d27a53fc02a87e76066fc4e15ff1fff3922a482d )
Co-authored-by: Clinton <pygeek@users.noreply.github.com>
Miss Islington (bot) [Tue, 30 Jul 2024 09:17:35 +0000 (11:17 +0200)]
[3.13] gh-122400: Handle ValueError in filecmp (GH-122401) (GH-122441)
(cherry picked from commit
3a9b2aae615165a40614db9aaa8b90c55ff0c7f9 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Tue, 30 Jul 2024 08:05:09 +0000 (10:05 +0200)]
[3.13] gh-105733: Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it. (GH-122281) (GH-122440)
gh-105733: Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it. (GH-122281)
Soft-deprecate ctypes.ARRAY, rather than hard-deprecating it.
Partially reverts
2211454fe210637ed7fabda12690dac6cc9a8149
(cherry picked from commit
3833d27f985a62c4709dcd9dc73724fc19d46ebf )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 07:36:08 +0000 (09:36 +0200)]
[3.13] gh-122420: Fix accounting for immortal interned strings in refleak.py (GH-122421) (GH-122430)
The `_PyUnicode_Intern*` functions already adjust the total refcount, so
we don't want to readjust it in refleak.py.
(cherry picked from commit
ac8da34621a574cd5773217404757a294025ba49 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 30 Jul 2024 04:08:35 +0000 (06:08 +0200)]
[3.13] GH-121970: Extract ``audit_events`` into a new extension (GH-122325) (#122434)
Miss Islington (bot) [Tue, 30 Jul 2024 03:40:02 +0000 (05:40 +0200)]
[3.13] gh-122133: Authenticate socket connection for `socket.socketpair()` fallback (GH-122134) (GH-122424)
Authenticate socket connection for `socket.socketpair()` fallback when the platform does not have a native `socketpair` C API. We authenticate in-process using `getsocketname` and `getpeername` (thanks to Nathaniel J Smith for that suggestion).
(cherry picked from commit
78df1043dbdce5c989600616f9f87b4ee72944e5 )
Co-authored-by: Seth Michael Larson <seth@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Brandt Bucher [Mon, 29 Jul 2024 21:51:19 +0000 (14:51 -0700)]
[3.13] GH-116090: Fire RAISE events from _FOR_ITER_TIER_TWO (GH-122419)
(cherry picked from commit
15d4cd096758ca089c6bd6ed808c34cca676d9bb )
Adam Turner [Mon, 29 Jul 2024 21:45:16 +0000 (22:45 +0100)]
[3.13] GH-122085: Use include files for C API deprecations (GH-109843) (#122422)
(cherry picked from commit
76bdfa4cd02532519fb43ae91244e2b4b3650d78 )
Miss Islington (bot) [Mon, 29 Jul 2024 19:16:15 +0000 (21:16 +0200)]
[3.13] gh-122311: Fix a refleak in pickle (GH-122411) (GH-122415)
(cherry picked from commit
68840e91ac6689d3954b98a9ab136e194b5250b8 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Mon, 29 Jul 2024 18:55:28 +0000 (21:55 +0300)]
Revert "[3.13] gh-120713: Normalize year with century for datetime.strftime (GH-120820) (GH-121144)" (GH-122408)
This reverts commit
009618f1125838af3c4afc772f2593637766fd45 .
Eric Snow [Mon, 29 Jul 2024 16:25:02 +0000 (10:25 -0600)]
[3.13] gh-117482: Fix the Slot Wrapper Inheritance Tests (gh-122249)
The tests were only checking cases where the slot wrapper was present in the initial case. They were missing when the slot wrapper was added in the additional initializations. This fixes that.
(cherry-picked from commit
490e0ad83ac72c5688dfbbab4eac61ccfd7be5fd , AKA gh-122248)
Kirill Podoprigora [Mon, 29 Jul 2024 14:16:46 +0000 (17:16 +0300)]
[3.13] gh-122292: Split up ``Lib/test/test_ast.py`` into a couple of … (#122393)
[3.13] gh-122292: Split up ``Lib/test/test_ast.py`` into a couple of files (GH-122293)
(cherry picked from commit
9187484dd97f6beb94fc17676014706922e380e1 )
Miss Islington (bot) [Mon, 29 Jul 2024 09:27:14 +0000 (11:27 +0200)]
[3.13] gh-122311: Fix some error messages in pickle (GH-122386) (GH-122387)
(cherry picked from commit
3b034d26eb8480f8d12ae11f42d038d24cf8498a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 28 Jul 2024 08:56:49 +0000 (10:56 +0200)]
[3.13] gh-122311: Add more tests for pickle (GH-122376) (GH-122377)
(cherry picked from commit
bc93923a2dee00751e44da58b6967c63e3f5c392 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Sun, 28 Jul 2024 08:09:00 +0000 (10:09 +0200)]
[3.13] gh-122085: Create dedicated page for deprecations (GH-122352) (#122374)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Pablo Galindo Salgado [Sat, 27 Jul 2024 19:27:01 +0000 (20:27 +0100)]
[3.13] gh-122300: Preserve AST nodes for format specifiers with single elements (GH-122308) (#122364)
(cherry picked from commit
db2d8b6db1b56c2bd3802b86f9b76da33e8898d7 )
Miss Islington (bot) [Sat, 27 Jul 2024 17:19:09 +0000 (19:19 +0200)]
[3.13] GH-121462: pathlib docs: improve table of corresponding os/os.path functions (GH-121465) (#122359)
Re-order table of corresponding functions with the following priorities:
1. Pure functionality is at the top
2. `os.path` functions are shown before `os` functions
3. Similar functionality is kept together
4. Functionality follows docs order where possible
Add a few missed correspondences:
- `os.path.isjunction` and `Path.is_junction`
- `os.path.ismount` and `Path.is_mount`
- `os.lstat()` and `Path.lstat()`
- `os.lchmod()` and `Path.lchmod()`
Also add footnotes describing a few differences.
(cherry picked from commit
cbac8a3888411587beb026e246889154fbdd49a3 )
Co-authored-by: Barney Gale <barney.gale@gmail.com>
Miss Islington (bot) [Sat, 27 Jul 2024 14:34:08 +0000 (16:34 +0200)]
[3.13] gh-122044: Don't error during gitignore filtering with no files (GH-122045) (#122355)
Co-authored-by: Seth Michael Larson <seth@python.org>
Hugo van Kemenade [Sat, 27 Jul 2024 11:42:49 +0000 (14:42 +0300)]
[3.13] gh-122085: Use include files for `whatsnew/3.14.rst` deprecations (GH-122242) (#122350)
Miss Islington (bot) [Sat, 27 Jul 2024 10:54:49 +0000 (12:54 +0200)]
[3.13] gh-122170: Handle ValueError raised by os.stat() in linecache (GH-122176) (GH-122348)
(cherry picked from commit
7a6d4ccf0ec16e09f0d8b21c5a0c591e5e3e45f7 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Sat, 27 Jul 2024 08:51:02 +0000 (10:51 +0200)]
[3.13] gh-122291: Intern latin-1 one-byte strings at startup (GH-122303) (GH-122347)
(cherry picked from commit
bb09ba679223666e01f8da780f97888a29d07131 )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Miss Islington (bot) [Sat, 27 Jul 2024 07:06:50 +0000 (09:06 +0200)]
[3.13] gh-122332: Fix missing `NULL` check in `asyncio.Task.get_coro` (GH-122338) (#122344)
gh-122332: Fix missing `NULL` check in `asyncio.Task.get_coro` (GH-122338)
(cherry picked from commit
c08696286f52d286674f264eecf7b33a335a890b )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Russell Keith-Magee [Sat, 27 Jul 2024 03:00:42 +0000 (13:00 +1000)]
[3.13] gh-121832: Revert test skip introduced by GH-122150. (GH-122340) (#122342)
Revert test skip introduced by GH-122150.
(cherry picked from commit
863a92f2bc708b9e3dfa9828bb8155b8d371e09c )
Miss Islington (bot) [Sat, 27 Jul 2024 02:18:34 +0000 (04:18 +0200)]
[3.13] gh-120831: Correct default minimum iOS version. (GH-122339) (#122341)
gh-120831: Correct default minimum iOS version. (GH-122339)
Correct default minimum iOS version.
(cherry picked from commit
4a2607c1807982a107445b5a35240f587a61eb0d )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Miss Islington (bot) [Fri, 26 Jul 2024 22:20:01 +0000 (00:20 +0200)]
[3.13] Document ``mimetypes.MimeTypes.add_type()`` (GH-122301) (#122328)
Document ``mimetypes.MimeTypes.add_type()`` (GH-122301)
(cherry picked from commit
d52726ccd456833ea9f09cabb4b8aef09755e472 )
Co-authored-by: Subrahmanya Gaonkar <148525245+negativenagesh@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Fri, 26 Jul 2024 17:30:08 +0000 (19:30 +0200)]
[3.13] gh-122201: Lock mutex when setting handling_thread to NULL (GH-122204) (#122319)
In the free-threaded build, we need to lock pending->mutex when clearing
the handling_thread in order not to race with a concurrent
make_pending_calls in the same interpreter.
(cherry picked from commit
c557ae97d6bd9d04164a19b4fe136610e54dbdd8 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Fri, 26 Jul 2024 15:13:59 +0000 (17:13 +0200)]
[3.13] gh-122311: Fix typo in the pickle error formatting code (GH-122312) (GH-122314)
(cherry picked from commit
7c2921844f9fa713f93152bf3a569812cee347a0 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Mark Shannon [Fri, 26 Jul 2024 09:51:42 +0000 (10:51 +0100)]
[3.13] GH-122155: Fix cases generator to correctly compute 'peek' offset for error handling (GH-122158) (GH-122174)
Miss Islington (bot) [Thu, 25 Jul 2024 20:56:11 +0000 (22:56 +0200)]
[3.13] Move macOS matrix to the calling workflow (GH-121809) (#122297)
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Miss Islington (bot) [Thu, 25 Jul 2024 17:34:01 +0000 (19:34 +0200)]
[3.13] GH-121832: Assert that the version number of static builtin types is not changed by PyType_Modified (gh-122290)
Update datetime module and test_type_cache.py to not call PyType_Modified.
(cherry picked from commit
e55b05f29ee62cd92b6b9990fd699b78f19432ba , AKA gh--122182)
Co-authored-by: Mark Shannon <mark@hotpy.org>
Miss Islington (bot) [Thu, 25 Jul 2024 16:06:31 +0000 (18:06 +0200)]
[3.13] gh-121489: Export private _PyBytes_Join() again (GH-122267) (#122287)
gh-121489: Export private _PyBytes_Join() again (GH-122267)
(cherry picked from commit
aef95eb107fef9355c66461612aedd31265f8c21 )
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Miss Islington (bot) [Thu, 25 Jul 2024 14:58:34 +0000 (16:58 +0200)]
[3.13] gh-116322: Fix typo in the GH-ifdef check (GH-122268) (#122284)
gh-116322: Fix typo in the GH-ifdef check (GH-122268)
(cherry picked from commit
9bb2e4623f504c44655436eae181d802f544fff9 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 25 Jul 2024 12:20:40 +0000 (14:20 +0200)]
[3.13] gh-121913: Use str(exc) instead of exc.strerror in `asyncio.base_events` (GH-122269) (#122278)
gh-121913: Use str(exc) instead of exc.strerror in `asyncio.base_events` (GH-122269)
(cherry picked from commit
070f1e2e5b9b31ee3e7a1af2e30d7e3a66040b17 )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Miss Islington (bot) [Thu, 25 Jul 2024 11:29:22 +0000 (13:29 +0200)]
[3.13] gh-122270: Fix typos in the Py_DEBUG macro name (GH-122271) (GH-122275)
(cherry picked from commit
6c09b8de5c67406113e8d082e05c9587e35a852a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 25 Jul 2024 10:44:55 +0000 (12:44 +0200)]
[3.13] gh-82951: Fix serializing by name in pickle protocols < 4 (GH-122149) (GH-122264)
Serializing objects with complex __qualname__ (such as unbound methods and
nested classes) by name no longer involves serializing parent objects by value
in pickle protocols < 4.
(cherry picked from commit
dc07f65a53baf60d9857186294d3d7ba92d5606d )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Miss Islington (bot) [Thu, 25 Jul 2024 08:42:38 +0000 (10:42 +0200)]
[3.13] gh-122187: Avoid TSan reported race in `run_udp_echo_server` (GH-122189) (#122263)
gh-122187: Avoid TSan reported race in `run_udp_echo_server` (GH-122189)
TSan doesn't fully recognize the synchronization via I/O, so ensure that
socket name is retrieved earlier and use a different socket for sending
the "STOP" message.
(cherry picked from commit
2f74b709b637cad7a9c18a2d90b0747823f2ff51 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Thu, 25 Jul 2024 07:29:36 +0000 (09:29 +0200)]
[3.13] gh-113785: csv: fields starting with escapechar are not quoted (GH-122110) (GH-122258)
(cherry picked from commit
a3327dbfd4db9e5ad1ca514963d503abbbbfede7 )
Co-authored-by: Mikołaj Kuranowski <mkuranowski@gmail.com>
Miss Islington (bot) [Thu, 25 Jul 2024 07:28:33 +0000 (09:28 +0200)]
[3.13] gh-122191: Fix test_warnings failure if run with -Werror (GH-122222) (GH-122256)
__spec__.loader is now required in the module globals (see gh-86298).
(cherry picked from commit
9b4fe9b718f27352ba0c1cf1184f5b90d77d7df4 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Serhiy Storchaka [Thu, 25 Jul 2024 07:11:47 +0000 (10:11 +0300)]
[3.13] gh-122087: Restore ismethoddescriptor() and isroutine() for partial objects (GH-122218)
Now they return False again.
Eric Snow [Wed, 24 Jul 2024 18:02:36 +0000 (12:02 -0600)]
[3.13] gh-117482: Simplify the Fix For Builtin Types Slot Wrappers (gh-121932)
In gh-121602, I applied a fix to a builtin types initialization bug.
That fix made sense in the context of some broader future changes,
but introduced a little bit of extra complexity. For earlier versions
those future changes are not relevant; we can avoid the extra complexity.
Thus we can revert that earlier change and replace it with this one,
which is more focused and conceptually simpler. This is essentially
the implementation of an idea that @markshannon pointed out to me.
Note that this change would be much smaller if we didn't have to deal
with repr compatibility for builtin types that explicitly inherit tp slots
(see expect_manually_inherited()). The alternative is to stop
*explicitly* inheriting tp slots in static PyTypeObject values,
which is churn that we can do separately.
Miss Islington (bot) [Wed, 24 Jul 2024 10:57:41 +0000 (12:57 +0200)]
[3.13] Integrate `build_msi` into main CI workflow (GH-121778) (#122226)
Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Hugo van Kemenade [Wed, 24 Jul 2024 10:15:56 +0000 (13:15 +0300)]
[3.13] gh-122085: Use include files for `whatsnew/3.12.rst` deprecations, including 3.16 (GH-122093) (#122225)
Hugo van Kemenade [Wed, 24 Jul 2024 09:09:48 +0000 (12:09 +0300)]
[3.13] gh-122085: Use include files for `whatsnew/3.12.rst` deprecations (GH-122093) (#122223)
Miss Islington (bot) [Wed, 24 Jul 2024 06:44:41 +0000 (08:44 +0200)]
[3.13] GH-120754: Add more tests around seek + readall (GH-122103) (#122215)
GH-120754: Add more tests around seek + readall (GH-122103)
In the process of speeding up readall, A number of related tests
(ex. large file tests in test_zipfile) found problems with the
change I was making. This adds I/O tests to specifically test these
cases to help ensure they don't regress and hopefully make debugging
easier.
This is part of the improvements from
https://github.com/python/cpython/pull/121593GH-issuecomment-
2222261986
(cherry picked from commit
9eb734111be90399fb6ae2f717d736abb8e518cb )
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Miss Islington (bot) [Tue, 23 Jul 2024 22:49:36 +0000 (00:49 +0200)]
[3.13] gh-122029: Log call events in sys.setprofile when it's a method with c function (GH-122072) (GH-122205)
gh-122029: Log call events in sys.setprofile when it's a method with c function (GH-122072)
Log call events in sys.setprofile when it is a method with a C function.
(cherry picked from commit
e91ef13861e88c27aed51a24e58d1dcc855a01dc )
Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Miss Islington (bot) [Tue, 23 Jul 2024 22:48:02 +0000 (00:48 +0200)]
[3.13] gh-121832: Skip subinterpreter static type check on iOS to restore test suite. (GH-122150) (#122159)
gh-121832: Skip subinterpreter static type check on iOS to restore test suite. (GH-122150)
(cherry picked from commit
1bcc9eb8623c4e9bd8460f22b5ebae4e0cb434e4 )
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Eric Snow [Tue, 23 Jul 2024 21:53:39 +0000 (15:53 -0600)]
[3.13] gh-122199: Skip test_slot_wrappers When Checking For Refleaks (gh-122202)
(cherry picked from commit
41a91bd67f86c922f350894a797738038536e1c5 , AKA gh-122200)
Miss Islington (bot) [Tue, 23 Jul 2024 21:00:21 +0000 (23:00 +0200)]
[3.13] gh-117657: Skip tests that use threads after fork (GH-122194) (#122198)
These tests fail when run under thread sanitizer due to the use of fork
and threads.
(cherry picked from commit
64e221d7ada8f6c20189035c7e81503f4c914f04 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 23 Jul 2024 20:22:24 +0000 (22:22 +0200)]
[3.13] gh-117482: Expand Tests for Slot Wrappers of Inherited Slots of Static Builtin Types (gh-122195)
(cherry picked from commit
33d32faa580fb776cb660e9cc8aa7e45c6c68c08 , AKA gh-122192)
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
Miss Islington (bot) [Tue, 23 Jul 2024 17:30:58 +0000 (19:30 +0200)]
[3.13] gh-120974: Make _asyncio._leave_task atomic in the free-threaded build (GH-122139) (#122186)
gh-120974: Make _asyncio._leave_task atomic in the free-threaded build (GH-122139)
* gh-120974: Make _asyncio._leave_task atomic in the free-threaded build
Update `_PyDict_DelItemIf` to allow for an argument to be passed to the
predicate.
(cherry picked from commit
a15feded71dd47202db169613effdafc468a8cf3 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 23 Jul 2024 13:57:24 +0000 (15:57 +0200)]
[3.13] gh-121973: Fix flaky test_pyrepl tests (GH-122140) (GH-122173)
This fixes the flakiness in:
* test_inspect_keeps_globals_from_inspected_file
* test_inspect_keeps_globals_from_inspected_module
The output already includes newlines. Adding newlines for every entry in
the output list introduces non-determinism because it added '\n' in
places where stdout is flushed or some buffer becomes full.
The regex also needed to be updated because pyrepl includes control
characters -- the visible output on each line doesn't immediately follow
a newline character.
(cherry picked from commit
2c1b1e7a07eba0138b9858c6f2bea3cae9af0808 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Miss Islington (bot) [Tue, 23 Jul 2024 13:29:46 +0000 (15:29 +0200)]
[3.13] Docs: Use cross-reference to `os.uname` in `sysconfig.get_platform` (GH-122083) (#122171)
Docs: Use cross-reference to `os.uname` in `sysconfig.get_platform` (GH-122083)
(cherry picked from commit
498cb6dff10f97fa3d348a4c0ad9374d14af3312 )
Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
Miss Islington (bot) [Tue, 23 Jul 2024 13:27:31 +0000 (15:27 +0200)]
[3.13] gh-85453: Fix 'timezone' vs. 'time zone' spelling issues in datetime.rst (GH-118449) (#121837)
(cherry picked from commit
1755df7b3bf5aaaba55fd7ec02a91d99305e362e )
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
Miss Islington (bot) [Tue, 23 Jul 2024 12:48:23 +0000 (14:48 +0200)]
[3.13] GH-121970: Remove ``escape4chm`` (GH-122065) (#122167)
GH-121970: Remove ``escape4chm`` (GH-122065)
(cherry picked from commit
53e9e7de6359845f118431c05e2f14a96e03b757 )
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Miss Islington (bot) [Tue, 23 Jul 2024 10:24:07 +0000 (12:24 +0200)]
[3.13] gh-122088: Copy the coroutine status of the underlying callable in `@warnings.deprecated` (GH-122086) (#122156)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Miss Islington (bot) [Tue, 23 Jul 2024 09:17:52 +0000 (11:17 +0200)]
[3.13] gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (GH-122138) (#122152)
gh-120974: Make _asyncio._enter_task atomic in the free-threaded build (GH-122138)
Use `PyDict_SetDefaultRef` to set the current task in a single operation
under the dictionary's lock.
(cherry picked from commit
47847aa8ef66837f984fc4e30187d88f8d8ab201 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Tue, 23 Jul 2024 07:01:13 +0000 (09:01 +0200)]
[3.13] Refactor test_capi.test_long (GH-122113) (GH-122137)
Share common code for tests for PyLong_As*() functions.
(cherry picked from commit
69f2dc5c06e62b4a9eb4da8f0cd456cc09b998ed )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Miss Islington (bot) [Mon, 22 Jul 2024 17:57:36 +0000 (19:57 +0200)]
[3.13] Revert "gh-121946: Temporarily switch to llvm-17 in TSan CI (GH-121975)" (GH-122032) (#122131)
This reverts commit
53774e911df09c68cab2b9902b6e623e0f8cc908 .
The LLVM 18 Ubuntu package is working now.
(cherry picked from commit
ad935a901610bf54adcb35624b0202a03f2799b5 )
Co-authored-by: Sam Gross <colesbury@gmail.com>
Miss Islington (bot) [Mon, 22 Jul 2024 12:53:46 +0000 (14:53 +0200)]
[3.13] gh-99242 Ignore error when running regression tests under certain conditions. (GH-121663) (GH-121669)
(cherry picked from commit
0759cecd9d945dfbac2226febaba51f41195555c )
Co-authored-by: Bas Bloemsaat <bas@bloemsaat.com>
Co-authored-by: Kevin Diem <kg.diem@gmail.com>
Miss Islington (bot) [Mon, 22 Jul 2024 11:36:57 +0000 (13:36 +0200)]
[3.13] gh-121957: Emit audit events for `python -i` and `python -m asyncio` (GH-121958) (GH-122115)
Relatedly, emit the `cpython.run_startup` event from the Python version of
`PYTHONSTARTUP` handling.
(cherry picked from commit
dc93d1125f594ac7aece98558eaf33d09c348519 )
Co-authored-by: Łukasz Langa <lukasz@langa.pl>