]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
16 months agoPython 3.13.0b3 v3.13.0b3
Thomas Wouters [Thu, 27 Jun 2024 13:02:18 +0000 (15:02 +0200)] 
Python 3.13.0b3

16 months ago[3.13] gh-121027: Add a future warning in functools.partial.__get__ (GH-121086) ...
Miss Islington (bot) [Thu, 27 Jun 2024 12:13:01 +0000 (14:13 +0200)] 
[3.13] gh-121027: Add a future warning in functools.partial.__get__ (GH-121086) (#121092)

gh-121027: Add a future warning in functools.partial.__get__ (GH-121086)
(cherry picked from commit db96edd6d1a58045196a71aff565743f493b5fbb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] gh-120888: Bump bundled pip to 24.1.1 (GH-120889) (#121080)
Miss Islington (bot) [Thu, 27 Jun 2024 10:53:01 +0000 (12:53 +0200)] 
[3.13] gh-120888: Bump bundled pip to 24.1.1 (GH-120889) (#121080)

gh-120888: Bump bundled pip to 24.1.1 (GH-120889)
(cherry picked from commit 4999e0bda091826fcdf303dd439364e1d303a5ce)

Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
Co-authored-by: Pradyun Gedam <pradyunsg@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
16 months ago[3.13] gh-120868: Fix breaking change in `logging.config` when using `QueueHandler...
Miss Islington (bot) [Thu, 27 Jun 2024 09:09:17 +0000 (11:09 +0200)] 
[3.13] gh-120868: Fix breaking change in `logging.config` when using `QueueHandler` (GH-120872) (GH-121078)

(cherry picked from commit 7d9c68513d112823a9a6cdc7453b998b2c24eb4c)

16 months ago[3.13] gh-113433: Automatically Clean Up Subinterpreters in Py_Finalize() (gh-121067)
Miss Islington (bot) [Wed, 26 Jun 2024 21:56:13 +0000 (23:56 +0200)] 
[3.13] gh-113433: Automatically Clean Up Subinterpreters in Py_Finalize() (gh-121067)

This change makes things a little less painful for some users.  It also fixes a failing assert (gh-120765), by making sure all subinterpreters are destroyed before the main interpreter.  As part of that, we make sure Py_Finalize() always runs with the main interpreter active.

(cherry picked from commit 4be1f37b20bd51498d3adf8ad603095c0f38d6e5, AKA gh-121060)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
16 months ago[3.13] gh-120838: Add _PyThreadState_WHENCE_FINI (gh-121013)
Miss Islington (bot) [Wed, 26 Jun 2024 21:32:00 +0000 (23:32 +0200)] 
[3.13] gh-120838: Add _PyThreadState_WHENCE_FINI (gh-121013)

We also add _PyThreadState_NewBound() and drop _PyThreadState_SetWhence().

This change only affects internal API.

(cherry picked from commit a905721b9c5c15279e67c2f7785034b7356b2d46, AKA gh-121010)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
16 months ago[3.13] gh-121016: Add test for PYTHON_BASIC_REPL envioronment variable (GH-121017...
devdanzin [Wed, 26 Jun 2024 21:17:14 +0000 (18:17 -0300)] 
[3.13] gh-121016: Add test for PYTHON_BASIC_REPL envioronment variable (GH-121017) (#121064)

* gh-121016: Add test for `PYTHON_BASIC_REPL` envioronment variable (#121017)

(cherry picked from commit 9e45fd9858a059950f7387b4fda2b00df0e8e537)

* [3.13] gh-121016: Add test for `PYTHON_BASIC_REPL` envioronment variable (GH-121017)
(cherry picked from commit 9e45fd9858a059950f7387b4fda2b00df0e8e537)

Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
16 months ago[3.13] gh-120937: Reference weakref from the `__del__` documentation (GH-120940)...
Miss Islington (bot) [Wed, 26 Jun 2024 20:24:25 +0000 (22:24 +0200)] 
[3.13] gh-120937: Reference weakref from the `__del__` documentation (GH-120940) (#121061)

gh-120937: Reference weakref from the `__del__` documentation (GH-120940)
(cherry picked from commit 1c13b29d54ad6d7c9e030227d575ad7d21b4054f)

Co-authored-by: chaen <christophe.haen@cern.ch>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.13] gh-118908: Use __main__ for the default PyREPL namespace (GH-121054) (#121059)
Miss Islington (bot) [Wed, 26 Jun 2024 19:25:38 +0000 (21:25 +0200)] 
[3.13] gh-118908: Use __main__ for the default PyREPL namespace (GH-121054) (#121059)

16 months ago[3.13] gh-120593: Fix const qualifier in pyatomic.h (GH-121055) (#121057)
Miss Islington (bot) [Wed, 26 Jun 2024 18:37:28 +0000 (20:37 +0200)] 
[3.13] gh-120593: Fix const qualifier in pyatomic.h (GH-121055) (#121057)

gh-120593: Fix const qualifier in pyatomic.h (GH-121055)
(cherry picked from commit 9cd2dcbb87fb3c35d8ca3554d9472ac283f62a64)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.13] gh-121008: Fix idlelib.run tests (GH-121046) (#121049)
Miss Islington (bot) [Wed, 26 Jun 2024 14:08:31 +0000 (16:08 +0200)] 
[3.13] gh-121008: Fix idlelib.run tests (GH-121046) (#121049)

gh-121008: Fix idlelib.run tests (GH-121046)

When testing IDLE, don't create a Tk to avoid side effects such as
installing a PyOS_InputHook hook.
(cherry picked from commit 44eafd66882589d4f4eb569d70c49724da3e9291)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.13] Ignore some failing tests in emulated JIT CI (GH-120977)
Miss Islington (bot) [Wed, 26 Jun 2024 13:56:15 +0000 (15:56 +0200)] 
[3.13] Ignore some failing tests in emulated JIT CI (GH-120977)

(cherry picked from commit 07daaf1ce10eb6d7a5ca9ea7c9055bf571d9e57f)
Co-authored-by: Diego Russo <diego.russo@arm.com>
16 months ago[3.13] gh-120642: Move private PyCode APIs to the internal C API (#120643) (#121043)
Victor Stinner [Wed, 26 Jun 2024 13:35:19 +0000 (15:35 +0200)] 
[3.13] gh-120642: Move private PyCode APIs to the internal C API (#120643) (#121043)

gh-120642: Move private PyCode APIs to the internal C API (#120643)

* Move _Py_CODEUNIT and related functions to pycore_code.h.
* Move _Py_BackoffCounter to pycore_backoff.h.
* Move Include/cpython/optimizer.h content to pycore_optimizer.h.
* Remove Include/cpython/optimizer.h.
* Remove PyUnstable_Replace_Executor().

Rename functions:

* PyUnstable_GetExecutor() => _Py_GetExecutor()
* PyUnstable_GetOptimizer() => _Py_GetOptimizer()
* PyUnstable_SetOptimizer() => _Py_SetTier2Optimizer()
* PyUnstable_Optimizer_NewCounter() => _PyOptimizer_NewCounter()
* PyUnstable_Optimizer_NewUOpOptimizer() => _PyOptimizer_NewUOpOptimizer()

(cherry picked from commit 9e4a81f00fef689c6e18a64245aa064eaadc7ac7)

16 months ago[3.13] gh-121018: Ensure ArgumentParser.parse_args with exit_on_error=False raises...
Miss Islington (bot) [Wed, 26 Jun 2024 10:16:19 +0000 (12:16 +0200)] 
[3.13] gh-121018: Ensure ArgumentParser.parse_args with exit_on_error=False raises instead of exiting when given unrecognized arguments (GH-121019) (GH-121032)

(cherry picked from commit 0654336dd5138aec04e3017e15ccbb90a44e053d)

Co-authored-by: blhsing <blhsing@gmail.com>
16 months ago[3.13] gh-120380: fix Python implementation of `pickle.Pickler` for `bytes` and ...
Miss Islington (bot) [Wed, 26 Jun 2024 10:11:28 +0000 (12:11 +0200)] 
[3.13] gh-120380: fix Python implementation of `pickle.Pickler` for `bytes` and `bytearray` objects in protocol version 5. (GH-120422) (GH-120832)

gh-120380: fix Python implementation of `pickle.Pickler` for `bytes` and `bytearray` objects in protocol version 5. (GH-120422)
(cherry picked from commit 7595e6743ac78ac0dd19418176f66d251668fafc)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.13] gh-121025: Improve partialmethod.__repr__ (GH-121033) (#121037)
Miss Islington (bot) [Wed, 26 Jun 2024 09:49:42 +0000 (11:49 +0200)] 
[3.13] gh-121025: Improve partialmethod.__repr__ (GH-121033) (#121037)

gh-121025: Improve partialmethod.__repr__ (GH-121033)

It no longer contains redundant commas and spaces.
(cherry picked from commit d2646e3f45e3e4e831ee2ae84d55b161a361d592)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.13] gh-120155: Fix Coverity issue in parse_string() (GH-120997) (#121005)
Miss Islington (bot) [Tue, 25 Jun 2024 17:40:05 +0000 (19:40 +0200)] 
[3.13] gh-120155: Fix Coverity issue in parse_string() (GH-120997) (#121005)

gh-120155: Fix Coverity issue in parse_string() (GH-120997)
(cherry picked from commit 769aea332940f03c3e5b1ad9badd6635c1ac992a)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.13] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP...
Miss Islington (bot) [Tue, 25 Jun 2024 16:30:08 +0000 (18:30 +0200)] 
[3.13] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP 563 (GH-120272) (#121003)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.13] gh-120108: Fix deepcopying of AST trees with .parent attributes (GH-120114...
Jelle Zijlstra [Tue, 25 Jun 2024 15:39:29 +0000 (08:39 -0700)] 
[3.13] gh-120108: Fix deepcopying of AST trees with .parent attributes (GH-120114) (#121000)

(cherry picked from commit 42b2c9d78da7ebd6bd5925a4d4c78aec3c9e78e6)

16 months ago[3.13] Doc/README: Document 'make htmllive' (GH-120692) (#120990)
Miss Islington (bot) [Tue, 25 Jun 2024 09:25:54 +0000 (11:25 +0200)] 
[3.13] Doc/README: Document 'make htmllive' (GH-120692) (#120990)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
16 months ago[3.13] gh-120661: improve example for basic type hints (GH-120934) (#120987)
Miss Islington (bot) [Tue, 25 Jun 2024 08:25:29 +0000 (10:25 +0200)] 
[3.13] gh-120661: improve example for basic type hints (GH-120934) (#120987)

gh-120661: improve example for basic type hints (GH-120934)
(cherry picked from commit bb057ea1075e000ff3f0d6b27a2b7ca4117b4969)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.13] gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822) (#120985)
Miss Islington (bot) [Tue, 25 Jun 2024 08:17:53 +0000 (10:17 +0200)] 
[3.13] gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822) (#120985)

gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822)

Add missing space in AS_VAR_APPEND() on CFLAGS.
(cherry picked from commit 2106c9bef0c18ff35db7d6c083cb8f189507758e)

Co-authored-by: Michael Allwright <allsey87@gmail.com>
16 months ago[3.13] Add --with-lto back to Linux JIT CI (GH-120972)
Miss Islington (bot) [Mon, 24 Jun 2024 20:44:46 +0000 (22:44 +0200)] 
[3.13] Add --with-lto back to Linux JIT CI (GH-120972)

(cherry picked from commit fd0f814ade43fa479bfbe76dc226424db14a9354)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
16 months ago[3.13] GH-119054: Add "Permissions and ownership" section to pathlib docs. (GH-120505...
Barney Gale [Mon, 24 Jun 2024 19:32:08 +0000 (20:32 +0100)] 
[3.13] GH-119054: Add "Permissions and ownership" section to pathlib docs. (GH-120505) (#120967)

Add dedicated subsection for `pathlib.owner()`, `group()`, `chmod()` and
`lchmod()`.

(cherry picked from commit e4a97a7fb1c03d3b6ec6efbeff553a0230e003c7)

16 months ago[3.13] gh-120858: PyDict_Next should not lock the dict (GH-120859) (#120964)
Miss Islington (bot) [Mon, 24 Jun 2024 18:41:19 +0000 (20:41 +0200)] 
[3.13] gh-120858: PyDict_Next should not lock the dict (GH-120859) (#120964)

PyDict_Next no longer locks the dictionary in the free-threaded build. Locking
around individual PyDict_Next calls is not sufficient because the function
returns borrowed references and because it allows concurrent modifications
during the iteraiton loop.

The internal locking also interferes with correct external synchronization
because it may suspend outer critical sections created by the caller.
(cherry picked from commit 375b723d5873f948696c7e85a97f4778d9e00ff0)

Co-authored-by: Sam Gross <colesbury@gmail.com>
16 months ago[3.13] gh-120860: Fix a few bugs in `type_setattro` error paths. (GH-120861) (#120963)
Miss Islington (bot) [Mon, 24 Jun 2024 18:33:39 +0000 (20:33 +0200)] 
[3.13] gh-120860: Fix a few bugs in `type_setattro` error paths. (GH-120861) (#120963)

Moves the logic to update the type's dictionary to its own function in order
to make the lock scoping more clear.

Also, ensure that `name` is decref'd on the error path.
(cherry picked from commit dee63cb35971b87a09ddda5d6f29cd941f570720)

Co-authored-by: Sam Gross <colesbury@gmail.com>
16 months ago[3.13] gh-113993: Allow interned strings to be mortal, and fix related issues (GH...
Petr Viktorin [Mon, 24 Jun 2024 18:24:19 +0000 (20:24 +0200)] 
[3.13] gh-113993: Allow interned strings to be mortal, and fix related issues (GH-120520) (GH-120945)

* Add an InternalDocs file describing how interning should work and how to use it.

* Add internal functions to *explicitly* request what kind of interning is done:
  - `_PyUnicode_InternMortal`
  - `_PyUnicode_InternImmortal`
  - `_PyUnicode_InternStatic`

* Switch uses of `PyUnicode_InternInPlace` to those.

* Disallow using `_Py_SetImmortal` on strings directly.
  You should use `_PyUnicode_InternImmortal` instead:
  - Strings should be interned before immortalization, otherwise you're possibly
    interning a immortalizing copy.
  - `_Py_SetImmortal` doesn't handle the `SSTATE_INTERNED_MORTAL` to
    `SSTATE_INTERNED_IMMORTAL` update, and those flags can't be changed in
    backports, as they are now part of public API and version-specific ABI.

* Add private `_only_immortal` argument for `sys.getunicodeinternedsize`, used in refleak test machinery.

* Make sure the statically allocated string singletons are unique. This means these sets are now disjoint:
  - `_Py_ID`
  - `_Py_STR` (including the empty string)
  - one-character latin-1 singletons

  Now, when you intern a singleton, that exact singleton will be interned.

* Add a `_Py_LATIN1_CHR` macro, use it instead of `_Py_ID`/`_Py_STR` for one-character latin-1 singletons everywhere (including Clinic).

* Intern `_Py_STR` singletons at startup.

* For free-threaded builds, intern `_Py_LATIN1_CHR` singletons at startup.

* Beef up the tests. Cover internal details (marked with `@cpython_only`).

* Add lots of assertions

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
16 months ago[3.13] gh-119521: Rename IncompleteInputError to _IncompleteInputError and remove...
Miss Islington (bot) [Mon, 24 Jun 2024 18:23:30 +0000 (20:23 +0200)] 
[3.13] gh-119521: Rename IncompleteInputError to _IncompleteInputError and remove from public API/ABI (GH-119680, GH-120955) (GH-120944)

- gh-119521: Rename IncompleteInputError to _IncompleteInputError and remove from public API/ABI (GH-119680)
  (cherry picked from commit ce1064e4c9bcfd673323ad690e60f86e1ab907bb)

- gh-119521: Use `PyAPI_DATA`, not `extern`, for `_PyExc_IncompleteInputError` (GH-120955)
  (cherry picked from commit ac61d58db0753a3b37de21dbc6e86b38f2a93f1b)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
16 months ago[3.13] docs: puremagic.what() as replacement for imghdr.what() (GH-120871) (#120951)
Miss Islington (bot) [Mon, 24 Jun 2024 13:49:13 +0000 (15:49 +0200)] 
[3.13] docs: puremagic.what() as replacement for imghdr.what() (GH-120871) (#120951)

docs: puremagic.what() as replacement for imghdr.what() (GH-120871)
(cherry picked from commit 22b8a35d6e6660cf7457ed6636cb8c12fff7e8e7)

Co-authored-by: Christian Clauss <cclauss@me.com>
16 months ago[3.13] gh-120373: Mark test_audit.test_http as requiring the network resource (GH...
Miss Islington (bot) [Mon, 24 Jun 2024 13:44:06 +0000 (15:44 +0200)] 
[3.13] gh-120373: Mark test_audit.test_http as requiring the network resource (GH-120374) (#120948)

gh-120373: Mark test_audit.test_http as requiring the network resource (GH-120374)
(cherry picked from commit b0e1c51882e3a129d1e4db8291f7a0d869d6f1d6)

Co-authored-by: Itamar Oren <itamarost@gmail.com>
16 months ago[3.13] gh-119614: Fix truncation of strings with embedded null characters in Tkinter...
Miss Islington (bot) [Mon, 24 Jun 2024 09:45:45 +0000 (11:45 +0200)] 
[3.13] gh-119614: Fix truncation of strings with embedded null characters in Tkinter (GH-120909) (GH-120938)

Now the null character is always represented as \xc0\x80 for
Tcl_NewStringObj().
(cherry picked from commit c38e2f64d012929168dfef7363c9e48bd1a6c731)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage...
Miss Islington (bot) [Mon, 24 Jun 2024 08:55:28 +0000 (10:55 +0200)] 
[3.13] gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage and implications. (GH-112191) (#120935)

gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage and implications. (GH-112191)
(cherry picked from commit fc297b4ba4c61febeb2d8f5d718f2955c6bbea0a)

Co-authored-by: Alek Kowalczyk <alek.kowalczyk@gmail.com>
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
16 months ago[3.13] gh-120683: Fix an error in logging.LogRecord timestamp (GH-120709) (GH-120933)
Miss Islington (bot) [Mon, 24 Jun 2024 07:14:26 +0000 (09:14 +0200)] 
[3.13] gh-120683: Fix an error in logging.LogRecord timestamp (GH-120709) (GH-120933)

The integer part of the timestamp can be rounded up, while the millisecond
calculation truncates, causing the log timestamp to be wrong by up to 999 ms
(affected roughly 1 in 8 million timestamps).
(cherry picked from commit 1500a23f33f5a6d052ff1ef6383d9839928b8ff1)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] gh-119824: Revert the `where` solution and use meta commands (#120919)
Tian Gao [Sun, 23 Jun 2024 21:11:55 +0000 (14:11 -0700)] 
[3.13] gh-119824: Revert the `where` solution and use meta commands (#120919)

16 months ago[3.13] Docs makefile/RTD: Use uv if installed (GH-120711) (#120922)
Miss Islington (bot) [Sun, 23 Jun 2024 19:48:42 +0000 (21:48 +0200)] 
[3.13] Docs makefile/RTD: Use uv if installed (GH-120711) (#120922)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.13] gh-120910: Fix issue resolving relative paths outside site-packages. (GH-12091...
Miss Islington (bot) [Sun, 23 Jun 2024 17:30:08 +0000 (19:30 +0200)] 
[3.13] gh-120910: Fix issue resolving relative paths outside site-packages. (GH-120911) (#120917)

gh-120910: Fix issue resolving relative paths outside site-packages. (GH-120911)

Incorporates changes from importlib_metadata 7.2.1.
(cherry picked from commit 1ba0bb21ed4eb54023fdfccc9cb20be8fff946b1)

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
16 months ago[3.13] Typing docs: normalize some indents in code examples (GH-120912) (#120915)
Miss Islington (bot) [Sun, 23 Jun 2024 16:31:40 +0000 (18:31 +0200)] 
[3.13] Typing docs: normalize some indents in code examples (GH-120912) (#120915)

Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
16 months ago[3.13] gh-101830: Fix Tcl_Obj to string conversion (GH-120884) (GH-120905)
Miss Islington (bot) [Sun, 23 Jun 2024 15:33:19 +0000 (17:33 +0200)] 
[3.13] gh-101830: Fix Tcl_Obj to string conversion (GH-120884) (GH-120905)

Accessing the Tkinter object's string representation no longer converts
the underlying Tcl object to a string on Windows.
(cherry picked from commit f4ddaa396715855ffbd94590f89ab7d55feeec07)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] gh-120896: Fix typo in version changed note of `urllib.parse.urlparse()` ...
Miss Islington (bot) [Sun, 23 Jun 2024 12:58:06 +0000 (14:58 +0200)] 
[3.13] gh-120896: Fix typo in version changed note of `urllib.parse.urlparse()` (GH-120898) (#120902)

gh-120896: Fix typo in version changed note of `urllib.parse.urlparse()` (GH-120898)
(cherry picked from commit b6fa8fe86a6f4d02c263682716a91285a94024fc)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
16 months ago[3.13] gh-119003: Clarify slice assignments (GH-119935) (#120847)
Miss Islington (bot) [Sun, 23 Jun 2024 12:34:48 +0000 (14:34 +0200)] 
[3.13] gh-119003: Clarify slice assignments (GH-119935) (#120847)

gh-119003: Clarify slice assignments (GH-119935)
(cherry picked from commit 462832041e342f8aaf8c88ec44f7b14c70042575)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
16 months ago[3.13] Amend categories of @nineteendo's news entries (GH-120735) (#120850)
Nice Zombies [Sat, 22 Jun 2024 20:05:15 +0000 (22:05 +0200)] 
[3.13] Amend categories of @nineteendo's news entries (GH-120735) (#120850)

16 months ago[3.13] gh-120873: Add tests for new widget options in Tk 8.7 (GH-120877) (GH-120879)
Miss Islington (bot) [Sat, 22 Jun 2024 13:43:30 +0000 (15:43 +0200)] 
[3.13] gh-120873: Add tests for new widget options in Tk 8.7 (GH-120877) (GH-120879)

(cherry picked from commit a046c848c1df0cf98092e9696594d3fb836e3530)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] gh-120873: Add test for "state" option in ttk.Scale (GH-120874) (GH-120875)
Miss Islington (bot) [Sat, 22 Jun 2024 11:45:19 +0000 (13:45 +0200)] 
[3.13] gh-120873: Add test for "state" option in ttk.Scale (GH-120874) (GH-120875)

Also refactor the "state" option tests for other ttk widgets.
(cherry picked from commit 974a978631bfbfa6f617e927d5eaa82b06694ae5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812) ...
Miss Islington (bot) [Sat, 22 Jun 2024 11:14:46 +0000 (13:14 +0200)] 
[3.13] gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812) (#120843)

gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812)
(cherry picked from commit aed31beca9a54b85a1392631a48da80602210f18)

Co-authored-by: Peter <zintensitydev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
16 months ago[3.13] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) (GH-120864)
Miss Islington (bot) [Sat, 22 Jun 2024 07:17:55 +0000 (09:17 +0200)] 
[3.13] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) (GH-120864)

The tests are now passed with the current version of Tcl/Tk under
development (8.7b1+ and 9.0b3+).

The following changes were also made to make the tests more flexible:

* Helper methods like checkParam() now interpret the expected error message
  as a regular expression instead of a literal.
* Add support of new arguments in checkEnumParam():
  - allow_empty=True skips testing with empty string;
  - fullname= specifies the name for error message if it differs from the
    option name;
  - sort=True sorts values for error message.
* Add support of the allow_empty argument in checkReliefParam():
  allow_empty=True adds an empty string to the list of accepted values.
* Attributes _clip_highlightthickness, _clip_pad and  _clip_borderwidth
  specify how negative values of options -highlightthickness, -padx, -pady
  and -borderwidth are handled.
* Use global variables for some common error messages.

(cherry picked from commit 6ad26de6e8ab61b035e7ecfff9791c2b349c3ad0)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
16 months ago[3.13] gh-119344: Make critical section API public (GH-119353) (#120856)
Sam Gross [Fri, 21 Jun 2024 20:20:41 +0000 (16:20 -0400)] 
[3.13] gh-119344: Make critical section API public (GH-119353) (#120856)

This makes the following macros public as part of the non-limited C-API for
locking a single object or two objects at once.

* `Py_BEGIN_CRITICAL_SECTION(op)` / `Py_END_CRITICAL_SECTION()`
* `Py_BEGIN_CRITICAL_SECTION2(a, b)` / `Py_END_CRITICAL_SECTION2()`

The supporting functions and structs used by the macros are also exposed for
cases where C macros are not available.
(cherry picked from commit 8f17d69b7bc906e8407095317842cc0fd52cd84a)

16 months ago[3.13] gh-120838: Add a Note in the Docs About Expectations for Py_Finalize() (gh...
Miss Islington (bot) [Fri, 21 Jun 2024 19:21:47 +0000 (21:21 +0200)] 
[3.13] gh-120838: Add a Note in the Docs About Expectations for Py_Finalize() (gh-120852)

(cherry picked from commit 03fa2df92707b543c304a426732214002f81d671, AKA gh-120839)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
16 months ago[3.13] gh-120773: document introspective attributes of an async generator object...
Miss Islington (bot) [Fri, 21 Jun 2024 11:28:46 +0000 (13:28 +0200)] 
[3.13] gh-120773: document introspective attributes of an async generator object in the inspect module (GH-120778) (#120827)

gh-120773: document introspective attributes of an async generator object in the inspect module (GH-120778)
(cherry picked from commit 83d3d7aace32b8536f552f78dd29610344f13160)

Co-authored-by: blhsing <blhsing@gmail.com>
16 months ago[3.13] gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442...
Miss Islington (bot) [Fri, 21 Jun 2024 11:16:24 +0000 (13:16 +0200)] 
[3.13] gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442) (#120826)

gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442)
(cherry picked from commit 8334a1b55c93068f5d243852029baa83377ff6c9)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.13] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character...
Miss Islington (bot) [Thu, 20 Jun 2024 21:22:45 +0000 (23:22 +0200)] 
[3.13] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745) (GH-120813)

(cherry picked from commit a2f6f7dd26128b834c6e66fe1ceac3ac751143f5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] gh-117511: Make PyMutex public in the non-limited API (GH-117731) (#120800)
Sam Gross [Thu, 20 Jun 2024 16:00:25 +0000 (12:00 -0400)] 
[3.13] gh-117511: Make PyMutex public in the non-limited API (GH-117731) (#120800)

(cherry picked from commit 3af7263037de1d0ef63b070fc7bfc2cf042eaebe)

16 months ago[3.13] gh-119258: Backport optimizer frame fixes in GH-119365 (GH-120699)
Ken Jin [Thu, 20 Jun 2024 15:55:20 +0000 (23:55 +0800)] 
[3.13] gh-119258: Backport optimizer frame fixes in GH-119365 (GH-120699)

(cherry picked from commit 55402d3)

16 months ago[3.13] GH-119462: Enforce invariants of type versioning. Backport of GH-120731. ...
Mark Shannon [Thu, 20 Jun 2024 14:09:32 +0000 (15:09 +0100)] 
[3.13] GH-119462: Enforce invariants of type versioning. Backport of GH-120731. (#120748)

* Remove uses of Py_TPFLAGS_VALID_VERSION_TAG

16 months ago[3.13] Update the documentation howto index page and group docs into 3 logical sectio...
Miss Islington (bot) [Thu, 20 Jun 2024 10:24:14 +0000 (12:24 +0200)] 
[3.13] Update the documentation howto index page and group docs into 3 logical sections (GH-119366, GH-120703) (GH-120646)

Update the documentation howto index page and group docs into 3 logical sections (GH-119366)

(cherry picked from commit a26d27e7ee512cd822b7a7ba075171152779ffdd)

Includes a follow-up fix to properly merge GH-119877:
* Add a link to free-threading HOWTO to the index (GH-120703)
  (cherry picked from commit 45d5cab533a607716b2b41134839a59facf309cd)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
16 months ago[3.13] gh-119698: fix `symtable.Class.get_methods` and document its behaviour correct...
Jelle Zijlstra [Thu, 20 Jun 2024 05:27:23 +0000 (22:27 -0700)] 
[3.13] gh-119698: fix `symtable.Class.get_methods` and document its behaviour correctly (GH-120151) (#120777)

(cherry picked from commit b8a8e04fec76ad7f7c3e5149114dd2ee8a5caecc)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.13] Fix typos in comments (GH-120481) (#120774)
Miss Islington (bot) [Thu, 20 Jun 2024 03:40:54 +0000 (05:40 +0200)] 
[3.13] Fix typos in comments (GH-120481) (#120774)

(cherry picked from commit 656a1c81083b76b9d998c983f4329348a65985d3)

Co-authored-by: Xie Yanbo <xieyanbo@gmail.com>
16 months ago[3.13] GH-120602: Support LLVM_VERSION_SUFFIX for JIT builds (GH-120768)
Miss Islington (bot) [Thu, 20 Jun 2024 01:13:23 +0000 (03:13 +0200)] 
[3.13] GH-120602: Support LLVM_VERSION_SUFFIX for JIT builds (GH-120768)

(cherry picked from commit 285f42c850da0d8ca31850088eb7b9247cbbbc71)

Co-authored-by: Xarblu <xarblu@protonmail.com>
16 months ago[3.13] gh-118820: Zero-valued flag enum has no name (GH-118848) (GH-120759)
Miss Islington (bot) [Wed, 19 Jun 2024 22:11:30 +0000 (00:11 +0200)] 
[3.13] gh-118820: Zero-valued flag enum has no name (GH-118848) (GH-120759)

gh-118820: Zero-valued flag enum has no name (GH-118848)
(cherry picked from commit ed5ae6c4d76feaff06c2104c8ff864553b000253)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.13] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec...
Miss Islington (bot) [Wed, 19 Jun 2024 20:59:28 +0000 (22:59 +0200)] 
[3.13] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737) (#120760)

gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737)
(cherry picked from commit 1e4815692f6c8a37a3974d0d7d2025494d026d76)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.13] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-120753) (#120757)
Miss Islington (bot) [Wed, 19 Jun 2024 20:10:33 +0000 (22:10 +0200)] 
[3.13] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-120753) (#120757)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
16 months ago[3.13] gh-120521: clarify except* documentation to allow tuples (GH-120523) (#120750)
Miss Islington (bot) [Wed, 19 Jun 2024 19:07:04 +0000 (21:07 +0200)] 
[3.13] gh-120521: clarify except* documentation to allow tuples (GH-120523) (#120750)

(cherry picked from commit 58b3f111767148e9011ccd52660e208f0c834b2a)

Co-authored-by: Danny Yang <yangdanny97@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
16 months ago [3.13] gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh...
Nadeshiko Manju [Wed, 19 Jun 2024 17:40:48 +0000 (01:40 +0800)] 
 [3.13] gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh-118322 (GH-120712) (#120747)

[3.13] gh-120437: Fix `_CHECK_STACK_SPACE` optimization problems introduced in gh-118322 (GH-120712)

Signed-off-by: Manjusaka <me@manjusaka.me>
Co-authored-by: Ken Jin <kenjin4096@gmail.com>
16 months ago[3.13] gh-120635: Avoid leaking processes in test_pyrepl (GH-120676) (#120741)
Miss Islington (bot) [Wed, 19 Jun 2024 13:38:37 +0000 (15:38 +0200)] 
[3.13] gh-120635: Avoid leaking processes in test_pyrepl (GH-120676) (#120741)

gh-120635: Avoid leaking processes in test_pyrepl (GH-120676)

If the child process takes longer than SHORT_TIMEOUT seconds to
complete, kill the process but then wait until it completes with no
timeout to not leak child processes.
(cherry picked from commit 0f3e36454d754026d6c510053ff1e4b22ae80cd9)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.13] gh-120722: Set position on RETURN_VALUE in lambda (GH-120724) (#120738)
Miss Islington (bot) [Wed, 19 Jun 2024 13:22:21 +0000 (15:22 +0200)] 
[3.13] gh-120722: Set position on RETURN_VALUE in lambda (GH-120724) (#120738)

(cherry picked from commit d8f27cb1141fd3575de816438ed80a916c0560ed)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
16 months ago[3.13] gh-119960: Add information about regex flags in re module functions (GH-119978...
Miss Islington (bot) [Wed, 19 Jun 2024 10:30:34 +0000 (12:30 +0200)] 
[3.13] gh-119960: Add information about regex flags in re module functions (GH-119978) (#120730)

gh-119960: Add information about regex flags in re module functions (GH-119978)
(cherry picked from commit a86e6255c371e14cab8680dee979a7393b339ce5)

Co-authored-by: Awbert <119314310+SweetyAngel@users.noreply.github.com>
16 months ago[3.13] gh-120726: Fix compiler warnings on is_core_module() (GH-120727) (#120729)
Miss Islington (bot) [Wed, 19 Jun 2024 10:23:28 +0000 (12:23 +0200)] 
[3.13] gh-120726: Fix compiler warnings on is_core_module() (GH-120727) (#120729)

gh-120726: Fix compiler warnings on is_core_module() (GH-120727)

Fix compiler warnings on is_core_module() and
check_interpreter_whence(): only define them when
assertions are built.
(cherry picked from commit a816cd67f43d9adb27ccdb6331e08c835247d1df)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
16 months ago[3.13] gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507)...
Miss Islington (bot) [Wed, 19 Jun 2024 10:11:07 +0000 (12:11 +0200)] 
[3.13] gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507) (#119964)

gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507)
(cherry picked from commit 52586f930f62bd80374f0f240a4ecce0c0238174)

Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
16 months ago[3.13] gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450...
Miss Islington (bot) [Wed, 19 Jun 2024 07:20:09 +0000 (09:20 +0200)] 
[3.13] gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450) (GH-120700)

gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450)
(cherry picked from commit d8cd0fa4e347f460d0f3277e2392504e61ed087d)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.13] gh-120381: Fix inspect.ismethoddescriptor() (GH-120684)
Miss Islington (bot) [Wed, 19 Jun 2024 07:01:09 +0000 (09:01 +0200)] 
[3.13] gh-120381: Fix inspect.ismethoddescriptor() (GH-120684)

The `inspect.ismethoddescriptor()` function did not check for the lack of
`__delete__()` and, consequently, erroneously returned True when applied
to *data* descriptors with only `__get__()` and `__delete__()` defined.

(cherry picked from commit dacc5ac71a8e546f9ef76805827cb50d4d40cabf)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
16 months ago[3.13] gh-120633: Move scrollbar and remove tear-off menus in turtledemo (GH-120634...
Miss Islington (bot) [Wed, 19 Jun 2024 06:46:13 +0000 (08:46 +0200)] 
[3.13] gh-120633: Move scrollbar and remove tear-off menus in turtledemo (GH-120634) (#120725)

gh-120633: Move scrollbar and remove tear-off menus in turtledemo (GH-120634)
(cherry picked from commit 89f7208f672be635e923f04c19a7480eb8eb414c)

Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
16 months ago[3.13] gh-120496: Add a note about iterator thread-safe (gh-120685) (#120706)
Miss Islington (bot) [Wed, 19 Jun 2024 04:15:44 +0000 (06:15 +0200)] 
[3.13] gh-120496: Add a note about iterator thread-safe (gh-120685) (#120706)

gh-120496: Add a note about iterator thread-safe (gh-120685)
(cherry picked from commit 7e189aed6450c0aebcdd6ff6aefe29e2f45b173a)

Co-authored-by: Donghee Na <donghee.na@python.org>
16 months ago[3.13] gh-120367: fix bug where compiler detects redundant jump after pseudo op repla...
Miss Islington (bot) [Tue, 18 Jun 2024 22:34:07 +0000 (00:34 +0200)] 
[3.13] gh-120367: fix bug where compiler detects redundant jump after pseudo op replacement (GH-120714) (#120716)

16 months ago[3.13] gh-117953: Skip `test_interpreters` properly without GIL (gh-120707)
Miss Islington (bot) [Tue, 18 Jun 2024 16:05:30 +0000 (18:05 +0200)] 
[3.13] gh-117953: Skip `test_interpreters` properly without GIL (gh-120707)

(cherry picked from commit 1035fe0cfbeee23f61aed3332ebbae854e5da800, AKA gh-120689)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
16 months ago[3.13] gh-118789: Add `PyUnstable_Object_ClearWeakRefsNoCallbacks` (GH-118807) (...
Miss Islington (bot) [Tue, 18 Jun 2024 14:54:51 +0000 (16:54 +0200)] 
[3.13] gh-118789: Add `PyUnstable_Object_ClearWeakRefsNoCallbacks` (GH-118807) (#120695)

This exposes `PyUnstable_Object_ClearWeakRefsNoCallbacks` as an unstable
C-API function to provide a thread-safe mechanism for clearing weakrefs
without executing callbacks.

Some C-API extensions need to clear weakrefs without calling callbacks,
such as after running finalizers like we do in subtype_dealloc.
Previously they could use `_PyWeakref_ClearRef` on each weakref, but
that's not thread-safe in the free-threaded build.

(cherry picked from commit e8752d7b80775ec2a348cd4bf38cbe26a4a07615)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
16 months ago[3.13] gh-120659: Skip `test_freethreading` with GIL (GH-120660) (#120694)
Miss Islington (bot) [Tue, 18 Jun 2024 14:46:29 +0000 (16:46 +0200)] 
[3.13] gh-120659: Skip `test_freethreading` with GIL (GH-120660) (#120694)

gh-120659: Skip `test_freethreading` with GIL (GH-120660)
(cherry picked from commit 360f14a493d8461d42dc646be40b4b6fb20db57a)

Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
16 months ago[3.13] gh-119241: Add HOWTO for free-threaded C API extensions (GH-119877) (#120693)
Miss Islington (bot) [Tue, 18 Jun 2024 14:28:51 +0000 (16:28 +0200)] 
[3.13] gh-119241: Add HOWTO for free-threaded C API extensions (GH-119877) (#120693)

Some sections adapted from https://github.com/Quansight-Labs/free-threaded-compatibility/
written by Nathan Goldbaum.

(cherry picked from commit 02b272b7026b68e70b4a4d9a0ca080904aed374c)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
16 months ago[3.13] gh-120662: Improve `smtplib` example (GH-120668) (#120681)
Miss Islington (bot) [Tue, 18 Jun 2024 12:12:58 +0000 (14:12 +0200)] 
[3.13] gh-120662: Improve `smtplib` example (GH-120668) (#120681)

gh-120662: Improve `smtplib` example (GH-120668)
(cherry picked from commit 4bc27abdbee88efcf9ada83de6e9e9a0e439edaf)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.13] gh-119897: Add test for lambda generator invocation (GH-120658) (#120673)
Miss Islington (bot) [Tue, 18 Jun 2024 10:16:42 +0000 (12:16 +0200)] 
[3.13] gh-119897: Add test for lambda generator invocation (GH-120658) (#120673)

gh-119897: Add test for lambda generator invocation (GH-120658)
(cherry picked from commit 73dc1c678eb720c2ced94d2f435a908bb6d18566)

gh-120467: Add test for lambda generator invocation

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
16 months ago[3.13] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120669)
Miss Islington (bot) [Tue, 18 Jun 2024 09:54:55 +0000 (11:54 +0200)] 
[3.13] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120669)

Mocking only works if sys.modules['pydoc'] and pydoc are the same,
but some pydoc functions reload the module and change sys.modules.
Ensure that sys.modules['pydoc'] is always restored after the corresponding
tests.
(cherry picked from commit 2cf47389e26cb591342d07dad98619916d5a1b15)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] gh-120524: Avoid a Race On _PyRuntime.types.managed_static.types[i].interp_cou...
Miss Islington (bot) [Mon, 17 Jun 2024 22:13:40 +0000 (00:13 +0200)] 
[3.13] gh-120524: Avoid a Race On _PyRuntime.types.managed_static.types[i].interp_count (gh-120657)

gh-120182 added new global state (interp_count), but didn't add thread-safety for it.  This change eliminates the possible race.

(cherry picked from commit 2c66318cdc0545da37e7046533dfe74bde129d91, AKA gh-120529)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
16 months ago[3.13] gh-117657: Fix `__slots__` thread safety in free-threaded build (GH-119368...
Miss Islington (bot) [Mon, 17 Jun 2024 19:12:25 +0000 (21:12 +0200)] 
[3.13] gh-117657:  Fix `__slots__` thread safety in free-threaded build (GH-119368) (#120655)

Fix a race in `PyMember_GetOne` and `PyMember_SetOne` for `Py_T_OBJECT_EX`.
These functions implement `__slots__` accesses for Python objects.
(cherry picked from commit 362cd2680b45a36c3467b9721ff7fc0ceb338452)

Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
16 months ago[3.13] gh-117657: Fix TSan reported data race on ioctl_works (GH-120175) (#120654)
Miss Islington (bot) [Mon, 17 Jun 2024 17:52:49 +0000 (19:52 +0200)] 
[3.13] gh-117657: Fix TSan reported data race on ioctl_works (GH-120175) (#120654)

(cherry picked from commit 460cc9e14e221c53c0038a847bfd411fe184ebf3)

Co-authored-by: Sam Gross <colesbury@gmail.com>
16 months ago[3.13] gh-115649: Copy the filename into main interpreter before intern in import...
Miss Islington (bot) [Mon, 17 Jun 2024 17:00:26 +0000 (19:00 +0200)] 
[3.13] gh-115649: Copy the filename into main interpreter before intern in import.c (GH-120315) (#120652)

gh-115649: Copy the filename into main interpreter before intern in import.c (GH-120315)
(cherry picked from commit 28140d1f2da1766bfbb83f58779f15255c73c871)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
16 months ago[3.13] gh-120433: Mention ``chocolatey`` for installing llvm on Windows as an alterna...
Miss Islington (bot) [Mon, 17 Jun 2024 16:18:07 +0000 (18:18 +0200)] 
[3.13] gh-120433: Mention ``chocolatey`` for installing llvm on Windows as an alternative option (GH-120434) (#120651)

gh-120433: Mention ``chocolatey`` for installing llvm on Windows as an alternative option (GH-120434)
(cherry picked from commit 95737bbf18765a24b6585708588c9b707dc30d27)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
16 months ago[3.13] gh-120367: fix removal of redundant NOPs and jumps after reordering hot-cold...
Miss Islington (bot) [Mon, 17 Jun 2024 15:07:20 +0000 (17:07 +0200)] 
[3.13] gh-120367: fix removal of redundant NOPs and jumps after reordering hot-cold blocks (GH-120425) (#120621)

gh-120367: fix removal of redundant NOPs and jumps after reordering hot-cold blocks (GH-120425)
(cherry picked from commit 21866c8ed296524f0ca175c0f55b43744c2b30df)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
16 months ago[3.13] gh-119933: Improve ``SyntaxError`` message for invalid type parameters express...
Jelle Zijlstra [Mon, 17 Jun 2024 15:01:49 +0000 (08:01 -0700)] 
[3.13] gh-119933: Improve ``SyntaxError`` message for invalid type parameters expressions (GH-119976) (#120641)

(cherry picked from commit 4bf17c381fb7b465f0f26aecb94a6c54cf9be2d3)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.13] gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-12058...
Miss Islington (bot) [Mon, 17 Jun 2024 07:09:11 +0000 (09:09 +0200)] 
[3.13] gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-120588) (#120616)

gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-120588)
(cherry picked from commit 3df2022931f77c5cadb3f51b371be6ae17587ede)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.13] gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 ...
Miss Islington (bot) [Mon, 17 Jun 2024 06:06:11 +0000 (08:06 +0200)] 
[3.13] gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (GH-120480) (#120612)

gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (GH-120480)
(cherry picked from commit bac4edad69bb20dd9460766e062637cae999e1e0)

gh-112346: Describe the "os" byte in gzip output change.

Co-authored-by: Gregory P. Smith <greg@krypto.org>
16 months ago[3.13] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570...
Miss Islington (bot) [Sun, 16 Jun 2024 21:09:54 +0000 (23:09 +0200)] 
[3.13] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570) (#120597)

gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570)
(cherry picked from commit bd4516d9efee109dd3b02a3d60845f9053fc6718)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.13] gh-118596: Add thread-safety clarifications to the SSLContext documentation...
Miss Islington (bot) [Sun, 16 Jun 2024 20:43:20 +0000 (22:43 +0200)] 
[3.13] gh-118596: Add thread-safety clarifications to the SSLContext documentation (GH-118597) (#120595)

gh-118596: Add thread-safety clarifications to the SSLContext documentation (GH-118597)

Add thread-safety clarifications to the SSLContext documentation. Per the issue:

This issue has also come up [here](https://github.com/psf/requests/pull/6667) where the matter was clarified by @tiran in [this comment](https://github.com/psf/requests/pull/6667):
> `SSLContext` is designed to be shared and used for multiple connections. It is thread safe as long as you don't reconfigure it once it is used by a connection. Adding new certs to the internal trust store is fine, but changing ciphers, verification settings, or mTLS certs can lead to surprising behavior. The problem is unrelated to threads and can even occur in a single-threaded program.
(cherry picked from commit 4f59f8638267aa64ad2daa0111d8b7fdc2499834)

Co-authored-by: mm-matthias <43849132+mm-matthias@users.noreply.github.com>
16 months ago[3.13] gh-119824: Print stack entry when user input is needed (GH-119882) (#120533)
Tian Gao [Sun, 16 Jun 2024 19:05:07 +0000 (12:05 -0700)] 
[3.13] gh-119824: Print stack entry when user input is needed (GH-119882) (#120533)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
16 months ago[3.13] gh-120584: Fix "unused thread_critical_sections" warning in `test_critical_sec...
Miss Islington (bot) [Sun, 16 Jun 2024 17:38:00 +0000 (19:38 +0200)] 
[3.13] gh-120584: Fix "unused thread_critical_sections" warning in `test_critical_sections` (GH-120585) (#120592)

gh-120584: Fix "unused thread_critical_sections" warning in `test_critical_sections` (GH-120585)
(cherry picked from commit b337aefd3e44f5c8e38cd282273359d07cce6126)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.13] Docs: remove temporary hardcoded links (GH-120348) (#120587)
Miss Islington (bot) [Sun, 16 Jun 2024 13:07:27 +0000 (15:07 +0200)] 
[3.13] Docs: remove temporary hardcoded links (GH-120348) (#120587)

Docs: remove temporary hardcoded links (GH-120348)
(cherry picked from commit b8484c6ad7fd14ca464e584b79821b4b906dd77a)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.13] gh-120579: Guard `_testcapi` import in `test_free_threading` (GH-120580) ...
Miss Islington (bot) [Sun, 16 Jun 2024 08:50:33 +0000 (10:50 +0200)] 
[3.13] gh-120579: Guard `_testcapi` import in `test_free_threading` (GH-120580) (#120583)

gh-120579: Guard `_testcapi` import in `test_free_threading` (GH-120580)
(cherry picked from commit 0c0348adbfca991f78b3aaa6790e5c26606a1c0f)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.13] gh-120360: Add self as IDLE doc owner (GH-120571) (#120576)
Miss Islington (bot) [Sun, 16 Jun 2024 06:22:07 +0000 (08:22 +0200)] 
[3.13] gh-120360: Add self as IDLE doc owner (GH-120571) (#120576)

gh-120360: Add self as IDLE doc owner (GH-120571)

Add self as IDLE doc owner
(cherry picked from commit cf49ef78f894e418bea7de23dde9b01d6235889d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
16 months ago[3.13] gh-120572: add missing parentheses in TypeIs documentation (GH-120573) (#120575)
Miss Islington (bot) [Sun, 16 Jun 2024 05:51:29 +0000 (07:51 +0200)] 
[3.13] gh-120572: add missing parentheses in TypeIs documentation (GH-120573) (#120575)

gh-120572: add missing parentheses in TypeIs documentation (GH-120573)
(cherry picked from commit 1fa595963ed512b055d2a4faddef5a9e544288ac)

Co-authored-by: Nyuan Zhang <blueglassblock@outlook.com>
16 months ago[3.13] gh-112346: Always set OS byte to 255, simpler gzip.compress function. (GH...
Miss Islington (bot) [Sat, 15 Jun 2024 19:10:50 +0000 (21:10 +0200)] 
[3.13] gh-112346: Always set OS byte to 255, simpler gzip.compress function. (GH-120486) (#120563)

gh-112346: Always set OS byte to 255, simpler gzip.compress function. (GH-120486)

This matches the output behavior in 3.10 and earlier; the optimization in 3.11 allowed the zlib library's "os" value to be filled in instead in the circumstance when mtime was 0.  this keeps things consistent.
(cherry picked from commit 08d09cf5ba041c9c5c3860200b56bab66fd44a23)

Co-authored-by: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
16 months ago[3.13] gh-120541: Improve the "less" prompt in pydoc (GH-120543) (GH-120562)
Miss Islington (bot) [Sat, 15 Jun 2024 18:21:13 +0000 (20:21 +0200)] 
[3.13] gh-120541: Improve the "less" prompt in pydoc (GH-120543) (GH-120562)

When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
(cherry picked from commit 31d1d72d7e24e0427df70f7dd14b9baff28a4f89)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.13] annotations: expand documentation on "simple" assignment targets (GH-120535...
Miss Islington (bot) [Sat, 15 Jun 2024 15:35:57 +0000 (17:35 +0200)] 
[3.13] annotations: expand documentation on "simple" assignment targets (GH-120535) (#120555)

This behavior is rather surprising and it was not clearly specified.

(cherry picked from commit 9e0b11eb21930b7b8e4a396200a921e9985cfca4)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.13] gh-117657: Make PyType_HasFeature (exported version) atomic (GH-120484) (...
Miss Islington (bot) [Sat, 15 Jun 2024 15:06:54 +0000 (17:06 +0200)] 
[3.13] gh-117657: Make PyType_HasFeature (exported version) atomic (GH-120484) (#120554)

gh-117657: Make PyType_HasFeature (exported version) atomic (GH-120484)

Make PyType_HasFeature (exported version) atomic
(cherry picked from commit 6f63dfff6f493b405f3422210a168369e1e7a35d)

Co-authored-by: Ken Jin <kenjin@python.org>