]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
17 months agogh-119070: Fix py.exe handling of /usr/bin/env commands missing extension (GH-119426)
Miss Islington (bot) [Wed, 29 May 2024 20:06:38 +0000 (22:06 +0200)] 
gh-119070: Fix py.exe handling of /usr/bin/env commands missing extension (GH-119426)

(cherry picked from commit df93f5d4bf9d70036d485666d4dd4f009d37f8b9)

Co-authored-by: Steve Dower <steve.dower@python.org>
17 months ago[3.13] gh-119525: Fix deadlock with `_PyType_Lookup` and the GIL (GH-119527) (#119746)
Miss Islington (bot) [Wed, 29 May 2024 19:47:47 +0000 (21:47 +0200)] 
[3.13] gh-119525: Fix deadlock with `_PyType_Lookup` and the GIL (GH-119527) (#119746)

The deadlock only affected the free-threaded build and only occurred
when the GIL was enabled at runtime. The `Py_DECREF(old_name)` call
might temporarily release the GIL while holding the type seqlock.
Another thread may spin trying to acquire the seqlock while holding the
GIL.

The deadlock occurred roughly 1 in ~1,000 runs of `pool_in_threads.py`
from `test_multiprocessing_pool_circular_import`.
(cherry picked from commit c22323cd1c200ca1b22c47af95f67c4b2d661fe7)

Co-authored-by: Sam Gross <colesbury@gmail.com>
17 months ago[3.13] gh-119555: catch SyntaxError from compile() in the InteractiveColoredConsole...
Miss Islington (bot) [Wed, 29 May 2024 11:04:45 +0000 (13:04 +0200)] 
[3.13] gh-119555: catch SyntaxError from compile() in the InteractiveColoredConsole (GH-119557) (#119709)

17 months ago[3.13] gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#119712) (#119716)
Victor Stinner [Wed, 29 May 2024 10:32:00 +0000 (12:32 +0200)] 
[3.13] gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#119712) (#119716)

gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#119712)

When the _Py_SINGLETON() is used, Argument Clinic now adds an
explicit "pycore_runtime.h" include to get the macro. Previously, the
macro may or may not be included indirectly by another include.

(cherry picked from commit 7ca74a760a5d3cdf48159f003d4db7c2778e9261)

17 months ago[3.13] gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (GH-119705...
Miss Islington (bot) [Wed, 29 May 2024 07:26:13 +0000 (09:26 +0200)] 
[3.13] gh-119704: Fix reference leak in the ``Python/Python-tokenize.c`` (GH-119705) (#119707)

17 months ago[3.13] gh-119443: Turn off from __future__ import annotations in REPL (GH-119493...
Miss Islington (bot) [Wed, 29 May 2024 01:26:19 +0000 (03:26 +0200)] 
[3.13] gh-119443: Turn off from __future__ import annotations in REPL (GH-119493) (#119697)

gh-119443: Turn off from __future__ import annotations in REPL (GH-119493)
(cherry picked from commit a8e35e8ebad8c3bb44d14968aa05d1acbc028247)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
17 months ago[3.13] gh-119538: Add missing expat build dependencies (GH-119647) (#119685)
Miss Islington (bot) [Tue, 28 May 2024 22:10:59 +0000 (00:10 +0200)] 
[3.13] gh-119538: Add missing expat build dependencies (GH-119647) (#119685)

xmltok_impl.c and xmltok_ns.c are _included_ in xmltok.c by the C
pre-processor.

(cherry picked from commit 606be663622c6784aed4ffa55b877adbd6fe8e54)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
17 months ago[3.13] gh-117398: Statically Allocate the Datetime C-API (GH-119472) (gh-119641)
Eric Snow [Tue, 28 May 2024 21:00:04 +0000 (17:00 -0400)] 
[3.13] gh-117398: Statically Allocate the Datetime C-API (GH-119472) (gh-119641)

This is a backport of 3 commits that go together.

(cherry picked from commit a895756)
(cherry picked from commit b30d30c)
(cherry picked from commit a89fc26)

17 months ago[3.13] gh-119118: Fix performance regression in tokenize module (GH-119615) (#119682)
Miss Islington (bot) [Tue, 28 May 2024 20:47:45 +0000 (22:47 +0200)] 
[3.13] gh-119118: Fix performance regression in tokenize module (GH-119615) (#119682)

- Cache line object to avoid creating a Unicode object
  for all of the tokens in the same line.
- Speed up byte offset to column offset conversion by using the
  smallest buffer possible to measure the difference.

(cherry picked from commit d87b0151062e36e67f9e42e1595fba5bf23a485c)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
17 months ago[3.13] gh-119011: `type.__type_params__` now return an empty tuple (GH-119296) (...
Miss Islington (bot) [Tue, 28 May 2024 19:09:04 +0000 (21:09 +0200)] 
[3.13] gh-119011: `type.__type_params__` now return an empty tuple (GH-119296) (#119678)

(cherry picked from commit 6b240c2308a044e38623900ccb8fa58c3549d4ae)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.13] gh-119311: Fix name mangling with PEP 695 generic classes (#119464) (#119643)
Jelle Zijlstra [Tue, 28 May 2024 18:03:33 +0000 (11:03 -0700)] 
[3.13] gh-119311: Fix name mangling with PEP 695 generic classes (#119464) (#119643)

Fixes #119311. Fixes #119395.

(cherry picked from commit a9a74da4a0ca0645f049e67b6434a95e30592c32)

17 months ago[3.13] gh-119581: Add a test of InitVar with name shadowing (GH-119582) (#119672)
Miss Islington (bot) [Tue, 28 May 2024 17:41:02 +0000 (19:41 +0200)] 
[3.13] gh-119581: Add a test of InitVar with name shadowing (GH-119582) (#119672)

gh-119581: Add a test of InitVar with name shadowing (GH-119582)
(cherry picked from commit 6ec371223dff4da7719039e271f35a16a5b861c6)

Co-authored-by: Steven Troxler <steven.troxler@gmail.com>
17 months ago[3.13] Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409...
Miss Islington (bot) [Tue, 28 May 2024 14:55:37 +0000 (16:55 +0200)] 
[3.13] Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409) (GH-119483)

Clarify base64.a85encode docs: *wrapcols* doesn't count the newline (GH-119409)
(cherry picked from commit ffa24aab107b5bc3c6ad31a6a245c226bf24b208)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
17 months ago[3.13] [doc] Clarify the nature of the root logger in the `logging` documentation...
Miss Islington (bot) [Tue, 28 May 2024 14:04:46 +0000 (16:04 +0200)] 
[3.13] [doc] Clarify the nature of the root logger in the `logging` documentation (GH-119440) (GH-119651)

(cherry picked from commit b407ad38fb93585332c370b8fa56905fb238cdfd)

17 months ago[3.13] Re-order imports to align with zipp 3.18.2 (GH-119587) (#119589)
Miss Islington (bot) [Tue, 28 May 2024 12:49:13 +0000 (14:49 +0200)] 
[3.13] Re-order imports to align with zipp 3.18.2 (GH-119587) (#119589)

Re-order imports to align with zipp 3.18.2 (GH-119587)
(cherry picked from commit 5482a939ac18f4cd861d212c759960af8fa2b19d)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
17 months ago[3.13] gh-116860: Remove outdated `test_parserhack` from `test_future` (GH-116861...
Miss Islington (bot) [Tue, 28 May 2024 09:55:37 +0000 (11:55 +0200)] 
[3.13] gh-116860: Remove outdated `test_parserhack` from `test_future` (GH-116861) (#119649)

gh-116860: Remove outdated `test_parserhack` from `test_future` (GH-116861)
(cherry picked from commit 669175bf8edc2c02d48401bac0e4c7d99a33f15b)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.13] gh-117398: Revert gh-119636, Add multiphase support to _datetime (#119639) 119642/head
Eric Snow [Tue, 28 May 2024 00:52:52 +0000 (20:52 -0400)] 
[3.13] gh-117398: Revert gh-119636, Add multiphase support to _datetime (#119639)

Revert "[3.13] gh-117398: Add multiphase support to _datetime (gh-119373) (gh-119636)"

This reverts commit d58ebf073c755c2f0f6e4ef2296b48a4c75e5f1c.

17 months ago[3.13] gh-119317: findall instead of traverse for docutils nodes (GH-119319) (#119486)
Miss Islington (bot) [Mon, 27 May 2024 23:46:15 +0000 (01:46 +0200)] 
[3.13] gh-119317: findall instead of traverse for docutils nodes (GH-119319) (#119486)

gh-119317: findall instead of traverse for docutils nodes (GH-119319)
(cherry picked from commit 0867bce45768454ee31bee95ca33fdc2c9d8b0fa)

Co-authored-by: Carlos Meza <hire@carlosmeza.com>
17 months ago[3.13] gh-117398: Add multiphase support to _datetime (gh-119373) (gh-119636)
Miss Islington (bot) [Mon, 27 May 2024 22:36:32 +0000 (00:36 +0200)] 
[3.13] gh-117398: Add multiphase support to _datetime (gh-119373) (gh-119636)

This is minimal support.  Subinterpreters are not supported yet.  That will be addressed in a later change.

(cherry picked from commit 3e8b60905e97a4fe89bb24180063732214368938)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
17 months ago[3.13] gh-119584: Fix test_import Failed Assertion (gh-119623) (gh-119633)
Miss Islington (bot) [Mon, 27 May 2024 20:04:13 +0000 (22:04 +0200)] 
[3.13] gh-119584: Fix test_import Failed Assertion (gh-119623) (gh-119633)

The fix in gh-119561 introduced an assertion that doesn't hold true if any of the three new test extension modules are loaded more than once.  This is fine normally but breaks if the new test_check_state_first() is run more than once, which happens for refleak checking and with the regrtest --forever flag.  We fix that here by clearing each of the three modules after loading them.  We also tweak a check in _modules_by_index_check().

(cherry picked from commit ae7b17673f29efe17b416cbcfbf43b5b3ff5977c)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
17 months ago[3.13] gh-119560: Drop an Invalid Assert in PyState_FindModule() (gh-119561) (gh...
Miss Islington (bot) [Mon, 27 May 2024 19:11:29 +0000 (21:11 +0200)] 
[3.13] gh-119560: Drop an Invalid Assert in PyState_FindModule() (gh-119561) (gh-119632)

The assertion was added in gh-118532 but was based on the invalid assumption that PyState_FindModule() would only be called with an already-initialized module def.  I've added a test to make sure we don't make that assumption again.

(cherry picked from commit 0c5ebe13e9937c446e9947c44f2570737ecca135)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
17 months ago[3.13] Docs: Move inline JavaScript to own file to reduce duplication (GH-119541...
Hugo van Kemenade [Mon, 27 May 2024 18:49:52 +0000 (21:49 +0300)] 
[3.13] Docs: Move inline JavaScript to own file to reduce duplication (GH-119541) (#119630)

17 months ago[3.13] Misc cleanups and wording improvements for the itertools docs (gh-119626)...
Miss Islington (bot) [Mon, 27 May 2024 18:44:11 +0000 (20:44 +0200)] 
[3.13] Misc cleanups and wording improvements for the itertools docs (gh-119626) (gh-119629)

17 months ago[3.13] gh-119580: Improve version added section for convenience variable (GH-119583...
Miss Islington (bot) [Mon, 27 May 2024 18:13:01 +0000 (20:13 +0200)] 
[3.13] gh-119580: Improve version added section for convenience variable (GH-119583) (#119624)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
17 months ago[3.13] Docs: Only install sphinx-autobuild for `make htmllive` (GH-119607) (#119621)
Miss Islington (bot) [Mon, 27 May 2024 17:44:55 +0000 (19:44 +0200)] 
[3.13] Docs: Only install sphinx-autobuild for `make htmllive` (GH-119607) (#119621)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
17 months ago[3.13] gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475...
Miss Islington (bot) [Mon, 27 May 2024 12:34:13 +0000 (14:34 +0200)] 
[3.13] gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475) (#119602)

gh-119467: Fix Py_buffer.format type and correct documentation typo (GH-119475)
(cherry picked from commit 3b26cd8ca0e6c65e4b61effea9aa44d06e926797)

Co-authored-by: Aditya Borikar <adityaborikar2@gmail.com>
17 months ago[3.13] Fix typos in HISTORY documentation (GH-119453) (#119597)
Miss Islington (bot) [Mon, 27 May 2024 08:13:49 +0000 (10:13 +0200)] 
[3.13] Fix typos in HISTORY documentation (GH-119453) (#119597)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
17 months ago[3.13] gh-111997: Fix argument count for LINE event and clarify type of argument...
Miss Islington (bot) [Sun, 26 May 2024 12:59:29 +0000 (14:59 +0200)] 
[3.13] gh-111997: Fix argument count for LINE event and clarify type of argument counts. (GH-119179) (GH-119575)

gh-111997: Fix argument count for LINE event and clarify type of argument counts. (GH-119179)
(cherry picked from commit 70b07aa4153c1a914a3d69307d5b258cf7ed16ab)

Co-authored-by: scoder <stefan_ml@behnel.de>
17 months ago[3.13] docs: fix a few typos identified by codespell (GH-119516) (#119570)
Miss Islington (bot) [Sun, 26 May 2024 08:20:37 +0000 (10:20 +0200)] 
[3.13] docs: fix a few typos identified by codespell (GH-119516) (#119570)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
17 months ago[3.13] gh-99180: Make `StackSummary.should_show_carets` private (GH-119554) (#119556)
Miss Islington (bot) [Sat, 25 May 2024 17:30:57 +0000 (19:30 +0200)] 
[3.13] gh-99180: Make `StackSummary.should_show_carets` private (GH-119554) (#119556)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.13] FAQ: Add reference to Python version numbering scheme (GH-119225) (#119544)
Miss Islington (bot) [Sat, 25 May 2024 14:29:47 +0000 (16:29 +0200)] 
[3.13] FAQ: Add reference to Python version numbering scheme (GH-119225) (#119544)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
17 months ago[3.13] gh-111999: Fix the signature of str.format_map() (GH-119540) (#119543)
Miss Islington (bot) [Sat, 25 May 2024 13:46:41 +0000 (15:46 +0200)] 
[3.13] gh-111999: Fix the signature of str.format_map() (GH-119540) (#119543)

(cherry picked from commit 08e65430aafa1047029e6f132a5f748c415bda14)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.13] Misc improvement to the docs for itertools (gh-119529) (#119531)
Raymond Hettinger [Fri, 24 May 2024 22:26:25 +0000 (17:26 -0500)] 
[3.13] Misc improvement to the docs for itertools (gh-119529) (#119531)

Misc improvement to the docs for itertools (gh-119529)

17 months ago[3.13] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-119520) (#119522)
Miss Islington (bot) [Fri, 24 May 2024 20:01:44 +0000 (22:01 +0200)] 
[3.13] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-119520) (#119522)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
17 months agogh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule...
Miss Islington (bot) [Fri, 24 May 2024 18:26:06 +0000 (20:26 +0200)] 
gh-118263: Add additional arguments to path_t (Argument Clinic type) in posixmodule (GH-118355)

(cherry picked from commit 96b392df303b2cfaea823afcb462c0b455704ce8)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
17 months ago[3.13] GH-119496: accept UTF-8 BOM in .pth files (GH-119508)
Miss Islington (bot) [Fri, 24 May 2024 14:52:20 +0000 (16:52 +0200)] 
[3.13] GH-119496: accept UTF-8 BOM in .pth files (GH-119508)

`Out-File -Encoding utf8` and similar commands in Windows Powershell 5.1 emit
UTF-8 with a BOM marker, which the regular `utf-8` codec decodes incorrectly.

`utf-8-sig` accepts a BOM, but also works correctly without one.

This change also makes .pth files match the way Python source files are handled.

(cherry picked from commit bf5b6467f8cc06759f3396ab1a8ad64fe7d1db2e)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
17 months ago[3.13] gh-69214: Fix fcntl.ioctl() request type (GH-119498) (#119504)
Miss Islington (bot) [Fri, 24 May 2024 12:54:59 +0000 (14:54 +0200)] 
[3.13] gh-69214: Fix fcntl.ioctl() request type (GH-119498) (#119504)

gh-69214: Fix fcntl.ioctl() request type (GH-119498)

Use an 'unsigned long' instead of an 'unsigned int' for the request
parameter of fcntl.ioctl() to support requests larger than UINT_MAX.
(cherry picked from commit 92fab3356f4c61d4c73606e4fae705c6d8f6213b)

Co-authored-by: Victor Stinner <vstinner@python.org>
17 months ago[3.13] gh-118692: Avoid creating unnecessary StopIteration instances for monitoring...
Miss Islington (bot) [Fri, 24 May 2024 10:18:13 +0000 (12:18 +0200)] 
[3.13] gh-118692: Avoid creating unnecessary StopIteration instances for monitoring (GH-119216) (#119497)

* gh-118692: Avoid creating unnecessary StopIteration instances for monitoring (GH-119216)
(cherry picked from commit 6e9863d7a3516cc76d6ce13923b15620499f3855)

---------

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
17 months ago[3.13] GH-113464: Run the JIT interpreter before any other JIT CI (GH-119490)
Miss Islington (bot) [Fri, 24 May 2024 03:38:56 +0000 (05:38 +0200)] 
[3.13] GH-113464: Run the JIT interpreter before any other JIT CI (GH-119490)

(cherry picked from commit b48a3dbff4d70e72797e67b46276564fc63ddb89)

17 months ago[3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465) (#119479)
Victor Stinner [Thu, 23 May 2024 22:27:04 +0000 (00:27 +0200)] 
[3.13] gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465) (#119479)

gh-119461: Fix ThreadedVSOCKSocketStreamTest (#119465)

Fix ThreadedVSOCKSocketStreamTest: if get_cid() returns the host
address or the "any" address, use the local communication address
(loopback): VMADDR_CID_LOCAL.

On Linux 6.9, apparently, the /dev/vsock device is now available but
get_cid() returns VMADDR_CID_ANY (-1).

(cherry picked from commit e94dbe4ed83460f18bd72563c5f09f6cdc71f604)

17 months ago[3.13] gh-118727: Don't drop the GIL in `drop_gil()` unless the current thread holds...
Miss Islington (bot) [Thu, 23 May 2024 21:27:38 +0000 (23:27 +0200)] 
[3.13] gh-118727: Don't drop the GIL in `drop_gil()` unless the current thread holds it (GH-118745) (#119474)

`drop_gil()` assumes that its caller is attached, which means that the current
thread holds the GIL if and only if the GIL is enabled, and the enabled-state
of the GIL won't change. This isn't true, though, because `detach_thread()`
calls `_PyEval_ReleaseLock()` after detaching and
`_PyThreadState_DeleteCurrent()` calls it after removing the current thread
from consideration for stop-the-world requests (effectively detaching it).

Fix this by remembering whether or not a thread acquired the GIL when it last
attached, in `PyThreadState._status.holds_gil`, and check this in `drop_gil()`
instead of `gil->enabled`.

This fixes a crash in `test_multiprocessing_pool_circular_import()`, so I've
reenabled it.
(cherry picked from commit be1dfccdf2c5c7671b8a549e969b8cf7d60d9936)

Co-authored-by: Brett Simmers <swtaarrs@users.noreply.github.com>
17 months ago[3.13] gh-119469: Fix _pyrepl reference leaks (GH-119470) (#119471)
Miss Islington (bot) [Thu, 23 May 2024 17:58:59 +0000 (19:58 +0200)] 
[3.13] gh-119469: Fix _pyrepl reference leaks (GH-119470) (#119471)

(cherry picked from commit 6e012ced6cc07a7502278e1849c5618d1ab54a08)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
17 months ago[3.13] GH-117195: Avoid assertion error in `object.__sizeof__` (GH-117220) (GH-119456)
Miss Islington (bot) [Thu, 23 May 2024 15:58:34 +0000 (17:58 +0200)] 
[3.13] GH-117195: Avoid assertion error in `object.__sizeof__` (GH-117220) (GH-119456)

17 months ago[3.13] Fix typos in what's new documentation (GH-119448) (#119449)
Miss Islington (bot) [Thu, 23 May 2024 06:59:33 +0000 (08:59 +0200)] 
[3.13] Fix typos in what's new documentation (GH-119448) (#119449)

17 months ago[3.13] gh-90562: Mention slots pitfall in dataclass docs (GH-107391) (#119350)
Miss Islington (bot) [Thu, 23 May 2024 06:16:19 +0000 (08:16 +0200)] 
[3.13] gh-90562: Mention slots pitfall in dataclass docs (GH-107391) (#119350)

Co-authored-by: Josh Cannon <joshdcannon@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
17 months ago[3.13] gh-111201: Speed up paste mode in the REPL (#119341) (GH-119432) (#119439)
Miss Islington (bot) [Thu, 23 May 2024 04:23:40 +0000 (06:23 +0200)] 
[3.13] gh-111201: Speed up paste mode in the REPL (#119341) (GH-119432) (#119439)

(cherry picked from commit e6572e8f98d33994d2d0dd3afa92a2a72ee642a9)

Also includes:

* gh-111201: Use calc_complete_screen after bracketed paste in PyREPL (GH-119432)
(cherry picked from commit 14b063cbf1bb11a489d04a31f277edba0fc8893c)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
17 months ago[3.13] gh-118911: Trailing whitespace in a block shouldn't prevent the user from...
Lysandros Nikolaou [Thu, 23 May 2024 04:12:26 +0000 (00:12 -0400)] 
[3.13] gh-118911: Trailing whitespace in a block shouldn't prevent the user from terminating the code block (GH-119355) (#119404)

(cherry picked from commit 5091c4400c9ea2a2d1e4d89a28c9d0de2651fa6d)

Co-authored-by: Aya Elsayed <ayah.ehab11@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
17 months ago[3.13] gh-119434: Fix culmitive errors in wrapping as lines proceed (GH-119435) ...
Miss Islington (bot) [Thu, 23 May 2024 03:46:11 +0000 (05:46 +0200)] 
[3.13] gh-119434: Fix culmitive errors in wrapping as lines proceed (GH-119435) (#119441)

Fix culmitive errors in wrapping as lines proceed
(cherry picked from commit e3bf5381fd056d0bbdd775463e3724aab2012e45)

Co-authored-by: Dino Viehland <dinoviehland@gmail.com>
17 months ago[3.13] gh-117657: Fix missing atomic in dict_resize (GH-119312) (#119417)
Miss Islington (bot) [Wed, 22 May 2024 21:42:47 +0000 (23:42 +0200)] 
[3.13] gh-117657: Fix missing atomic in dict_resize (GH-119312) (#119417)

gh-117657: Fix missing atomic in dict_resize (GH-119312)

Fix missing atomic in dict_resize
(cherry picked from commit 2b3fb767bea1f96c9e0523f6cc341b40f0fa1ca1)

Co-authored-by: Dino Viehland <dinoviehland@meta.com>
17 months ago[3.13] gh-70795: Rework RLock documentation (GH-103853) (#119436)
Miss Islington (bot) [Wed, 22 May 2024 21:21:58 +0000 (23:21 +0200)] 
[3.13] gh-70795: Rework RLock documentation (GH-103853) (#119436)

gh-70795: Rework RLock documentation (GH-103853)

Attempted to simultaneously reduce verbosity, while more descriptively
describing behavior.

Fix links (RLock acquire/release previously linking to Lock
acquire/release, seems like bad copy pasta).

Add a seealso for with-locks.

Switch section to use bullet points.

---------

(cherry picked from commit 2fbea81d646688cf438be1dc0be82112a9ae4325)

Co-authored-by: uıɐɾ ʞ ʇɐɯɐs <_@skj.io>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
17 months ago[3.13] gh-111201: auto-indentation in _pyrepl (GH-119348) (#119427)
Lysandros Nikolaou [Wed, 22 May 2024 21:14:03 +0000 (17:14 -0400)] 
[3.13] gh-111201: auto-indentation in _pyrepl (GH-119348) (#119427)

(cherry picked from commit cd516cd1f5e94dba887353f421513fd172efadf3)

Co-authored-by: Arnon Yaari <wiggin15@yahoo.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
17 months ago[3.13] Enable some stricter mypy settings on `Lib/_pyrepl` (GH-119077) (#119428)
Miss Islington (bot) [Wed, 22 May 2024 21:13:47 +0000 (23:13 +0200)] 
[3.13] Enable some stricter mypy settings on `Lib/_pyrepl` (GH-119077) (#119428)

(cherry picked from commit 0883fd22e6d4a3e360b48f30f6afa34553b3786a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.13] gh-113978: Ignore warnings on text completion inside REPL (GH-113979) (#119429)
Miss Islington (bot) [Wed, 22 May 2024 21:13:32 +0000 (23:13 +0200)] 
[3.13] gh-113978: Ignore warnings on text completion inside REPL (GH-113979) (#119429)

(cherry picked from commit e03dde5a24d3953e0b16f7cdefdc8b00aa9d9e11)

Co-authored-by: Yan Yanchii <yyanchiy@gmail.com>
17 months ago[3.13] gh-119357: Increase test coverage for keymap in _pyrepl (GH-119358) (#119414)
Lysandros Nikolaou [Wed, 22 May 2024 21:13:01 +0000 (17:13 -0400)] 
[3.13] gh-119357: Increase test coverage for keymap in _pyrepl (GH-119358) (#119414)

(cherry picked from commit 73ab83b27f105a4509046ce26e35f20d66625195)

Co-authored-by: Eugene Triguba <eugenetriguba@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
17 months agogh-117505: Run ensurepip in isolated env in Windows installer (GH-118257)
Miss Islington (bot) [Wed, 22 May 2024 19:46:35 +0000 (21:46 +0200)] 
gh-117505: Run ensurepip in isolated env in Windows installer (GH-118257)

ensurepip forks a subprocess to run pip itself, but that subprocess only inherits a -I isolated mode flag (see _run_pip() in Lib/ensurepip/__init__.py), not the "-E -s" flags that the installer has been using. This means that parts of ensurepip don't actually run in an isolated environment and can make incorrect decisions based on packages installed in the user site-packages.
(cherry picked from commit c9073eb1a99606df1efeb8959e9f11a8ebc23ae2)

Co-authored-by: Michael Vincent <377567+Vynce@users.noreply.github.com>
17 months ago[3.13] gh-112066: Fix versionadded in PyDict_SetDefaultRef docs (GH-118696) (#119430)
Miss Islington (bot) [Wed, 22 May 2024 19:36:35 +0000 (21:36 +0200)] 
[3.13] gh-112066: Fix versionadded in PyDict_SetDefaultRef docs (GH-118696) (#119430)

(cherry picked from commit 447edb6e987d22c91f6dfad043f3472ce07bdfc0)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
17 months ago[3.13] gh-119247: Add macros to use PySequence_Fast safely in free-threaded build...
Miss Islington (bot) [Wed, 22 May 2024 19:24:02 +0000 (21:24 +0200)] 
[3.13] gh-119247: Add macros to use PySequence_Fast safely in free-threaded build (GH-119315) (#119419)

Add `Py_BEGIN_CRITICAL_SECTION_SEQUENCE_FAST` and
`Py_END_CRITICAL_SECTION_SEQUENCE_FAST` macros and update `str.join` to use
them. Also add a regression test that would crash reliably without this
patch.
(cherry picked from commit baf347d91643a83483bae110092750d39471e0c2)

Co-authored-by: Josh {*()} Rosenberg <26495692+MojoVampire@users.noreply.github.com>
17 months ago[3.13] Improve `pyrepl` type-annotation coverage (GH-119081) (#119415)
Miss Islington (bot) [Wed, 22 May 2024 18:38:32 +0000 (20:38 +0200)] 
[3.13] Improve `pyrepl` type-annotation coverage (GH-119081) (#119415)

(cherry picked from commit 033f5c87f1f876088701d1ae078dc39c41177d4a)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.13] gh-119213: Be More Careful About _PyArg_Parser.kwtuple Across Interpreters...
Miss Islington (bot) [Wed, 22 May 2024 18:09:48 +0000 (20:09 +0200)] 
[3.13] gh-119213: Be More Careful About _PyArg_Parser.kwtuple Across Interpreters (gh-119331) (gh-119410)

_PyArg_Parser holds static global data generated for modules by Argument Clinic.  The _PyArg_Parser.kwtuple field is a tuple object, even though it's stored within a static global.  In some cases the tuple is statically allocated and thus it's okay that it gets shared by multiple interpreters.  However, in other cases the tuple is set lazily, allocated from the heap using the active interprepreter at the point the tuple is needed.

This is a problem once that interpreter is destroyed since _PyArg_Parser.kwtuple becomes at dangling pointer, leading to crashes.  It isn't a problem if the tuple is allocated under the main interpreter, since its lifetime is bound to the lifetime of the runtime.  The solution here is to temporarily switch to the main interpreter.  The alternative would be to always statically allocate the tuple.

This change also fixes a bug where only the most recent parser was added to the global linked list.

(cherry picked from commit 81865002aee8eaaeb3c7e402f86183afa6de77bf)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
17 months ago[3.13] gh-118893: Evaluate all statements in the new REPL separately (GH-119318)...
Miss Islington (bot) [Wed, 22 May 2024 16:22:01 +0000 (18:22 +0200)] 
[3.13] gh-118893: Evaluate all statements in the new REPL separately (GH-119318) (#119408)

(cherry picked from commit a3e4fec8734a304d654e4ae24a4aa2f41a7b0640)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
17 months ago[3.13] gh-119205: Fix autocompletion bug in new repl (GH-119229) (#119407)
Miss Islington (bot) [Wed, 22 May 2024 16:07:38 +0000 (18:07 +0200)] 
[3.13] gh-119205: Fix autocompletion bug in new repl (GH-119229) (#119407)

(cherry picked from commit 506b1a3ff66a41c72d205c8e4cba574e439d8e76)

Co-authored-by: Koudai Aono <koxudaxi@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
17 months ago[3.13] gh-111201: Add append to screen method to avoid recalculation (GH-119274)...
Miss Islington (bot) [Wed, 22 May 2024 16:03:04 +0000 (18:03 +0200)] 
[3.13] gh-111201: Add append to screen method to avoid recalculation (GH-119274) (#119405)

(cherry picked from commit c886bece3b3a49f8a0f188aecfc1d6ff89d281e6)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
17 months ago[3.13] gh-111201: Remove readline dependency from the PyREPL (GH-119262) (#119403)
Lysandros Nikolaou [Wed, 22 May 2024 15:45:11 +0000 (11:45 -0400)] 
[3.13] gh-111201: Remove readline dependency from the PyREPL (GH-119262) (#119403)

(cherry picked from commit 561ff1fa710493dee8c6482f990bd17535b27040)

17 months ago[3.13] gh-119306: Break up _pyrepl tests (GH-119307) (#119362)
Lysandros Nikolaou [Wed, 22 May 2024 15:02:18 +0000 (11:02 -0400)] 
[3.13] gh-119306: Break up _pyrepl tests (GH-119307) (#119362)

(cherry picked from commit f49df4f486e531ff2666eb22854117c564b3de3d)

Co-authored-by: Eugene Triguba <eugenetriguba@gmail.com>
17 months ago[3.13] gh-118643: Fix AttributeError in the email module (GH-119099) (GH-119389)
Miss Islington (bot) [Wed, 22 May 2024 11:07:38 +0000 (13:07 +0200)] 
[3.13] gh-118643: Fix AttributeError in the email module (GH-119099) (GH-119389)

Fix regression introduced in gh-100884: AttributeError when re-fold a long
address list.

Also fix more cases of incorrect encoding of the address separator in the
address list missed in gh-100884.
(cherry picked from commit 858b9e85fcdd495947c9e892ce6e3734652c48f2)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.13] Fix version number in use_load_tests deprecation reference (GH-119151) (GH...
Miss Islington (bot) [Wed, 22 May 2024 09:58:59 +0000 (11:58 +0200)] 
[3.13] Fix version number in use_load_tests deprecation reference (GH-119151) (GH-119386)

Deprecation took place in d78742a260ba09e53c844de7b1fd11a11c674945 (3.5)
(cherry picked from commit aee8f03abbebfb76357f459dfb297026862e3c0b)

Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
17 months ago[3.13] Fix typos in NEWS entries for 3.13 (GH-119374) (GH-119385)
Miss Islington (bot) [Wed, 22 May 2024 09:47:49 +0000 (11:47 +0200)] 
[3.13] Fix typos in NEWS entries for 3.13 (GH-119374) (GH-119385)

(cherry picked from commit 904e256292a0ed6c36f3490da9e4f8245370f535)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
17 months ago[3.13] gh-119189: Add yet more tests for mixed Fraction arithmetic (GH-119298) (GH...
Miss Islington (bot) [Wed, 22 May 2024 09:37:07 +0000 (11:37 +0200)] 
[3.13] gh-119189: Add yet more tests for mixed Fraction arithmetic (GH-119298) (GH-119346)

(cherry picked from commit 10b1bd926a5546e0f5cbd1a47d00dc5ff84f1979)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.13] Clarify that dklen is expected in bytes for the hashlib functions (GH-106624...
Miss Islington (bot) [Wed, 22 May 2024 09:10:02 +0000 (11:10 +0200)] 
[3.13] Clarify that dklen is expected in bytes for the hashlib functions (GH-106624) (GH-119383)

(cherry picked from commit 5adf78f546a5dc3f5b8eeaa209a2e8437ae96ac8)

Co-authored-by: Mathijs Mortimer <thiezn@users.noreply.github.com>
17 months ago[3.13] DOCS: fix error in exec namespace note (gh-119380)
Miss Islington (bot) [Wed, 22 May 2024 06:58:36 +0000 (08:58 +0200)] 
[3.13] DOCS: fix error in exec namespace note (gh-119380)

When updating the new exec note added in gh-119235 as part of the
PEP 667 general docs PR, I suggested a workaround that isn't valid.

The first half of the note is still reasonable, so just omit the invalid text.

(cherry picked from commit 31d61a75c9ae8c1b1bc6447f517122be8adce2ef)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
17 months ago[3.13] gh-110383: Align dict.get(), .fromkeys(), and .setdefault() docs with docstrin...
Miss Islington (bot) [Wed, 22 May 2024 01:31:56 +0000 (03:31 +0200)] 
[3.13] gh-110383: Align dict.get(), .fromkeys(), and .setdefault() docs with docstrings (GH-119330) (#119370)

(cherry picked from commit 0e3c8cda1f04c983994e76aea93600dbb4714832)

Co-authored-by: Landon Wood <landon@elkrange.com>
17 months ago[3.13] gh-118877: Fix AssertionError crash in pyrepl (GH-118936) (#119363)
Miss Islington (bot) [Wed, 22 May 2024 01:28:24 +0000 (03:28 +0200)] 
[3.13] gh-118877: Fix AssertionError crash in pyrepl (GH-118936) (#119363)

(cherry picked from commit c0d81b256604a1079349d82d136db43eefcb3df1)

Co-authored-by: Daniel Hollas <daniel.hollas@bristol.ac.uk>
17 months agogh-118507 : Refactor `nt._path_is*` to improve applicability for other cases (GH...
Miss Islington (bot) [Wed, 22 May 2024 00:29:34 +0000 (02:29 +0200)] 
gh-118507 : Refactor `nt._path_is*` to improve applicability for other cases (GH-118755)

(cherry picked from commit b64182550f73e556344bd754d32e3be5d22a74e1)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
17 months ago[3.13] gh-119102: Fix REPL for dumb terminal (GH-119332) (#119359)
Miss Islington (bot) [Wed, 22 May 2024 00:14:44 +0000 (02:14 +0200)] 
[3.13] gh-119102: Fix REPL for dumb terminal (GH-119332) (#119359)

The site module gets the __main__ module to get _pyrepl.__main__.
(cherry picked from commit de8f530841b55885b919677a6938ab33d4a92f20)

Co-authored-by: Victor Stinner <vstinner@python.org>
17 months ago[3.13] Docs: Add central references to free-threading-related options (GH-119017...
Miss Islington (bot) [Tue, 21 May 2024 23:16:59 +0000 (01:16 +0200)] 
[3.13] Docs: Add central references to free-threading-related options (GH-119017) (#119367)

Docs: Add central references to free-threading-related options (GH-119017)
(cherry picked from commit 9fa206aaeccc979a4bd03852ba38c045294a3d6f)

Co-authored-by: Brett Simmers <swtaarrs@users.noreply.github.com>
17 months ago[3.13] Fix typos in documentation (GH-119295) (#119337)
Miss Islington (bot) [Tue, 21 May 2024 22:07:20 +0000 (00:07 +0200)] 
[3.13] Fix typos in documentation (GH-119295) (#119337)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
17 months ago[3.13] gh-119035: Add Ctrl+← and Ctrl+→ word-skipping keybindings to new repl (GH...
Miss Islington (bot) [Tue, 21 May 2024 21:16:06 +0000 (23:16 +0200)] 
[3.13] gh-119035: Add Ctrl+← and Ctrl+→ word-skipping keybindings to new repl (GH-119248) (#119323)

add word-skipping ctrl keybindings to new repl
(cherry picked from commit 0398d9339217aa0710c0de45a7e9b587136e7129)

Co-authored-by: Alastair Stanley <alastairstanley@ntlworld.com>
17 months ago[3.13] gh-110383: Document `socket.makefile()` accepts combined modes (GH-119150...
Miss Islington (bot) [Tue, 21 May 2024 18:44:53 +0000 (20:44 +0200)] 
[3.13] gh-110383: Document `socket.makefile()` accepts combined modes (GH-119150) (#119324)

The supported mode values are 'r', 'w', and 'b', or a combination of those.
(cherry picked from commit 62a29be5bb01c2d0f72d8f9b1b5539816e65310c)

Co-authored-by: Daniel Williams <dann0a@gmail.com>
17 months ago[3.13] GH-110383: Improve Tutorial for Input Ouput (GH-119230) (GH-119326)
Miss Islington (bot) [Tue, 21 May 2024 17:54:26 +0000 (19:54 +0200)] 
[3.13] GH-110383: Improve Tutorial for Input Ouput (GH-119230) (GH-119326)

GH-110383: Improve Tutorial for Input Ouput (GH-119230)

(cherry picked from commit 9db2fd7edaa9d03e8c649c3bb0e8d963233cde22)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: edson duarte <eduarte.uatach@gmail.com>
17 months ago[3.13] GH-119292: Add job to JIT CI to build and test with --disable-gil (GH-119314)
Miss Islington (bot) [Tue, 21 May 2024 16:17:49 +0000 (18:17 +0200)] 
[3.13] GH-119292: Add job to JIT CI to build and test with --disable-gil (GH-119314)

(cherry picked from commit c4722cd0573c83aaa52b63a27022b9048a949f54)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
17 months ago[3.13] gh-119053: Implement the fast path for list.__getitem__ (gh-119112) (gh-119309)
Miss Islington (bot) [Tue, 21 May 2024 14:42:22 +0000 (16:42 +0200)] 
[3.13] gh-119053: Implement the fast path for list.__getitem__ (gh-119112) (gh-119309)

gh-119053: Implement the fast path for list.__getitem__ (gh-119112)
(cherry picked from commit ab4263a82abe8b684d8ad1edf7c7c6ec286ff756)

Co-authored-by: Donghee Na <donghee.na@python.org>
17 months ago[3.13] Docs: Ensure no warnings are found in the NEWS file before a given line number...
Hugo van Kemenade [Tue, 21 May 2024 14:40:08 +0000 (10:40 -0400)] 
[3.13] Docs: Ensure no warnings are found in the NEWS file before a given line number (GH-119221) (#119261)

17 months ago[3.13] gh-119102: Fix REPL for dumb terminal (GH-119269) (#119308)
Miss Islington (bot) [Tue, 21 May 2024 13:46:11 +0000 (15:46 +0200)] 
[3.13] gh-119102: Fix REPL for dumb terminal (GH-119269) (#119308)

gh-119102: Fix REPL for dumb terminal (GH-119269)

Use CAN_USE_PYREPL of _pyrepl.__main__ in the site module to decide
if _pyrepl.write_history_file() can be used.
(cherry picked from commit 73f4a58d36b65ec650e8f00b2affc4a4d3195f0c)

Co-authored-by: Victor Stinner <vstinner@python.org>
17 months ago[3.13] Use `fail-fast: false` in `mypy.yml` (GH-119297) (#119304)
Miss Islington (bot) [Tue, 21 May 2024 12:47:00 +0000 (14:47 +0200)] 
[3.13] Use `fail-fast: false` in `mypy.yml` (GH-119297) (#119304)

Use `fail-fast: false` in `mypy.yml` (GH-119297)

See docs about this setting: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actionsGH-jobsjob_idstrategyfail-fast
(cherry picked from commit b36533290608aed757f6eb16869a679650d32e17)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
17 months ago[3.13] gh-74929: PEP 667 general docs update (gh-119291)
Miss Islington (bot) [Tue, 21 May 2024 11:35:26 +0000 (13:35 +0200)] 
[3.13] gh-74929: PEP 667 general docs update (gh-119291)

* expand on What's New entry for PEP 667 (including porting notes)
* define 'optimized scope' as a glossary term
* cover comprehensions and generator expressions in locals() docs
* review all mentions of "locals" in documentation (updating if needed)
* review all mentions of "f_locals" in documentation (updating if needed)

(cherry picked from commit e870c852c0ea96fa4e4569e9c39c7ceb80ce858d)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
17 months ago[3.13] gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows...
Miss Islington (bot) [Tue, 21 May 2024 03:53:29 +0000 (05:53 +0200)] 
[3.13] gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175) (#119289)

gh-119174: Fix high DPI causes turtledemo(turtle-graphics examples) windows blurry (GH-119175)

------

(cherry picked from commit 538ed5e4818aa0d0aa759634e8bfa23e317434a1)

Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
17 months ago[3.13] gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide...
Miss Islington (bot) [Mon, 20 May 2024 23:50:23 +0000 (01:50 +0200)] 
[3.13] gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (GH-119232) (#119284)

gh-118912: Remove description of issue fixed in 3.5 from autospeccing guide (GH-119232)

* Remove description of issue fixed in 3.5 from autospeccing guide

* Make autospeccing note text more succint and lint whitespace

* Add linting changes (missed in last commit)

---------

(cherry picked from commit 7e57640c7ec6b7b5ce9b5eac465f6b771fd6ae69)

Co-authored-by: Shauna <shaunagm@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
17 months ago[3.13] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119279)
Miss Islington (bot) [Mon, 20 May 2024 22:53:32 +0000 (00:53 +0200)] 
[3.13] gh-108267 Fix another dataclasses docs typo (GH-119277) (#119279)

gh-108267 Fix another dataclasses docs typo (GH-119277)
(cherry picked from commit 423bbcbbc43cacfb6a217c04f890a47d3cf7c3a9)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.13] gh-119050: Add XML support to libregrtest refleak checker (GH-119148) (#119270)
Miss Islington (bot) [Mon, 20 May 2024 22:50:20 +0000 (00:50 +0200)] 
[3.13] gh-119050: Add XML support to libregrtest refleak checker (GH-119148) (#119270)

gh-119050: Add XML support to libregrtest refleak checker (GH-119148)

regrtest test runner: Add XML support to the refleak checker
(-R option).

* run_unittest() now stores XML elements as string, rather than
  objects, in support.junit_xml_list.
* runtest_refleak() now saves/restores XML strings before/after
  checking for reference leaks. Save XML into a temporary file.
(cherry picked from commit 9257731f5d3e9d4f99e314b23a14506563e167d7)

Co-authored-by: Victor Stinner <vstinner@python.org>
17 months ago[3.13] gh-119253: use ImportError in _ios_support (GH-119254) (#119265)
Miss Islington (bot) [Mon, 20 May 2024 22:21:28 +0000 (00:21 +0200)] 
[3.13] gh-119253: use ImportError in _ios_support (GH-119254) (#119265)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
17 months ago[3.13] gh-119189: Add more tests for mixed Fraction arithmetic (GH-119236) (GH-119255)
Miss Islington (bot) [Mon, 20 May 2024 21:00:20 +0000 (23:00 +0200)] 
[3.13] gh-119189: Add more tests for mixed Fraction arithmetic (GH-119236) (GH-119255)

(cherry picked from commit fe67af19638d208239549ccac8b4f4fb6480e801)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.13] gh-118760: Restore the default value of tkinter.wantobjects to 1 (GH-118784...
Miss Islington (bot) [Mon, 20 May 2024 20:28:42 +0000 (22:28 +0200)] 
[3.13] gh-118760: Restore the default value of tkinter.wantobjects to 1 (GH-118784) (GH-119251)

It was set to 2 in 65f5e586a1239ed1a66d8284773d7b02ce40e480 (GH-98592).
(cherry picked from commit e188527c343c74574d481b77c30063db1436e62b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
17 months ago[3.13] Use correct markup in unittest.mock.reset_mock documentation (GH-119207) ...
Miss Islington (bot) [Mon, 20 May 2024 20:12:38 +0000 (22:12 +0200)] 
[3.13] Use correct markup in unittest.mock.reset_mock documentation (GH-119207) (GH-119250)

Use correct markup in unittest.mock.reset_mock documentation (GH-119207)
(cherry picked from commit 6b80a5b20f31a067bd1c374295608df5f1210f49)

Co-authored-by: Tialo <65392801+Tialo@users.noreply.github.com>
17 months ago[3.13] gh-92081: Fix for email.generator.Generator with whitespace between encoded...
Miss Islington (bot) [Mon, 20 May 2024 20:01:56 +0000 (22:01 +0200)] 
[3.13] gh-92081: Fix for email.generator.Generator with whitespace between encoded words. (GH-92281) (#119245)

* Fix for email.generator.Generator with whitespace between encoded words.

email.generator.Generator currently does not handle whitespace between
encoded words correctly when the encoded words span multiple lines.  The
current generator will create an encoded word for each line.  If the end
of the line happens to correspond with the end real word in the
plaintext, the generator will place an unencoded space at the start of
the subsequent lines to represent the whitespace between the plaintext
words.

A compliant decoder will strip all the whitespace from between two
encoded words which leads to missing spaces in the round-tripped
output.

The fix for this is to make sure that whitespace between two encoded
words ends up inside of one or the other of the encoded words.  This
fix places the space inside of the second encoded word.

A second problem happens with continuation lines.  A continuation line that
starts with whitespace and is followed by a non-encoded word is fine because
the newline between such continuation lines is defined as condensing to
a single space character.  When the continuation line starts with whitespace
followed by an encoded word, however, the RFCs specify that the word is run
together with the encoded word on the previous line.  This is because normal
words are filded on syntactic breaks by encoded words are not.

The solution to this is to add the whitespace to the start of the encoded word
on the continuation line.

Test cases are from GH-92081

* Rename a variable so it's not confused with the final variable.
(cherry picked from commit a6fdb31b6714c9f3c65fefbb3fe388b2b139a75f)

Co-authored-by: Toshio Kuratomi <a.badger@gmail.com>
17 months ago[3.13] gh-112844: Update CPE references for external dependencies (GH-118521) (#119237)
Miss Islington (bot) [Mon, 20 May 2024 19:32:38 +0000 (21:32 +0200)] 
[3.13] gh-112844: Update CPE references for external dependencies (GH-118521) (#119237)

Co-authored-by: Seth Michael Larson <seth@python.org>
17 months ago[3.13] DOCS: Suggest always calling exec with a globals argument and no locals argume...
Miss Islington (bot) [Mon, 20 May 2024 18:15:25 +0000 (20:15 +0200)] 
[3.13] DOCS: Suggest always calling exec with a globals argument and no locals argument (GH-119235) (#119239)

DOCS: Suggest always calling exec with a globals argument and no locals argument (GH-119235)

Many users think they want a locals argument for various reasons but they do not
understand that it makes code be treated as a class definition. They do not want
their code treated as a class definition and get surprised. The reason not
to pass locals specifically is that the following code raises a `NameError`:

```py
exec("""
def f():
    print("hi")

f()

def g():
    f()
g()
""", {}, {})
```

The reason not to leave out globals is as follows:

```py
def t():
    exec("""
def f():
    print("hi")

f()

def g():
    f()
g()
    """)
```
(cherry picked from commit 7e1a130b8ff1ed8b3a5f00fe0f06d3916b852216)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
17 months ago[3.13] GH-119146: Don't run JIT CI on unrelated changes (GH-119226)
Miss Islington (bot) [Mon, 20 May 2024 17:26:28 +0000 (19:26 +0200)] 
[3.13] GH-119146: Don't run JIT CI on unrelated changes (GH-119226)

(cherry picked from commit 5307f44fb983f2a17727fb43602f5dfa63e93311)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
17 months ago[3.13] gh-115119: Fall back to bundled libmpdec if system libmpdec is not found ...
Miss Islington (bot) [Mon, 20 May 2024 16:10:21 +0000 (18:10 +0200)] 
[3.13] gh-115119: Fall back to bundled libmpdec if system libmpdec is not found (GH-119196) (#119217)

(cherry picked from commit 642b25b9a82c368b045709f0b94e7d5a02400ed2)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
17 months ago[3.13] [docs] TypeVarTuple default is keyword-only (GH-119215) (#119224)
Miss Islington (bot) [Mon, 20 May 2024 15:57:19 +0000 (17:57 +0200)] 
[3.13] [docs] TypeVarTuple default is keyword-only (GH-119215) (#119224)

(cherry picked from commit e406b399f9f677cda3d48ed8d7c9d29a173f51f3)

Co-authored-by: Sebastian Rittau <srittau@rittau.biz>
17 months ago[3.13] gh-119185: Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pa...
Miss Islington (bot) [Mon, 20 May 2024 15:10:40 +0000 (17:10 +0200)] 
[3.13] gh-119185: Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager` (GH-118881) (#119211)

Fix typo in `_pyrepl.pager`: `tempfilepager` should be `tempfile_pager`

The name with no underscore doesn't exist.
(cherry picked from commit 05e1dce76d7669e90ab73e7e682360d83b8a0d02)

Co-authored-by: Thanos <111999343+Sachaa-Thanasius@users.noreply.github.com>