]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
16 months ago[3.12] gh-121615: Improve `module.rst` C-API docs with better error descriptions...
sobolevn [Thu, 11 Jul 2024 09:12:06 +0000 (12:12 +0300)] 
[3.12] gh-121615: Improve `module.rst` C-API docs with better error descriptions (GH-121616) (#121619)

(cherry picked from commit e6264b44dc7221c713b14dfa0f5929b33d362829)

16 months ago[3.12] gh-107851: Fix spurious failures in fcntl eintr tests (GH-121556) (#121586)
Miss Islington (bot) [Wed, 10 Jul 2024 14:54:45 +0000 (16:54 +0200)] 
[3.12] gh-107851: Fix spurious failures in fcntl eintr tests (GH-121556) (#121586)

On heavily loaded machines, the subprocess may finish its sleep before
the parent process manages to synchronize with it via a failed lock.

This leads to errors like:

  Exception: failed to sync child in 300.3 sec

Use pipes instead to mutually synchronize between parent and child.
(cherry picked from commit af9f6de6ea930b607f948f2c91a87fe4ca9d64db)

Co-authored-by: Sam Gross <colesbury@gmail.com>
16 months ago[3.12] gh-121567: Improve `slice` C-API docs by mentioning exceptions (GH-121568...
Miss Islington (bot) [Wed, 10 Jul 2024 11:03:22 +0000 (13:03 +0200)] 
[3.12] gh-121567: Improve `slice` C-API docs by mentioning exceptions (GH-121568) (#121579)

gh-121567: Improve `slice` C-API docs by mentioning exceptions (GH-121568)
(cherry picked from commit 84a5597b08b7d53aced2fbd0048271ce762807a8)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
16 months ago[3.12] Improve zipimport tests (GH-121535) (GH-121570) (GH-121576)
Serhiy Storchaka [Wed, 10 Jul 2024 10:50:50 +0000 (13:50 +0300)] 
[3.12] Improve zipimport tests (GH-121535) (GH-121570) (GH-121576)

(cherry picked from commit 35c9399078727aead06b2f2b3f70369898bc8992)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
(cherry picked from commit 22a0bdbf9a63f92f45106c7dc4377e45e0278e60)

16 months ago[3.12] gh-121571: Do not use `EnvironmentError` in tests, use `OSError` instead ...
Miss Islington (bot) [Wed, 10 Jul 2024 10:35:29 +0000 (12:35 +0200)] 
[3.12] gh-121571: Do not use `EnvironmentError` in tests, use `OSError` instead (GH-121572) (#121575)

gh-121571: Do not use `EnvironmentError` in tests, use `OSError` instead (GH-121572)
(cherry picked from commit e2822360da30853f092d8a50ad83e52f6ea2ced9)

Co-authored-by: sobolevn <mail@sobolevn.me>
16 months ago[3.12] GH-121439: Allow PyTupleObjects with an ob_size of 20 in the free_list to...
Miss Islington (bot) [Wed, 10 Jul 2024 08:06:41 +0000 (10:06 +0200)] 
[3.12] GH-121439: Allow PyTupleObjects with an ob_size of 20 in the free_list to be reused (gh-121428) (#121566)

GH-121439: Allow PyTupleObjects with an ob_size of 20 in the free_list to be reused (gh-121428)
(cherry picked from commit 9585a1a2a251aaa15baf6579e13dd3be0cb05f1f)

Co-authored-by: satori1995 <132636720+satori1995@users.noreply.github.com>
16 months ago[3.12] gh-121533: Improve `PyCell_[Get,Set]` docs: mention the exceptions (GH-121534...
Miss Islington (bot) [Tue, 9 Jul 2024 16:03:12 +0000 (18:03 +0200)] 
[3.12] gh-121533: Improve `PyCell_[Get,Set]` docs: mention the exceptions (GH-121534) (#121540)

gh-121533: Improve `PyCell_[Get,Set]` docs: mention the exceptions (GH-121534)
(cherry picked from commit 649d5b6d7b04607dd17810ac73e8f16720c6dc78)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] gh-121333: Clarify what is the default executor for asyncio.run_in_executor...
Miss Islington (bot) [Tue, 9 Jul 2024 09:36:40 +0000 (11:36 +0200)] 
[3.12] gh-121333: Clarify what is the default executor for asyncio.run_in_executor (GH-121335) (#121525)

gh-121333: Clarify what is the default executor for asyncio.run_in_executor (GH-121335)
(cherry picked from commit facf9862da0cf9331550747197800d682cd371fb)

Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
16 months ago[3.12] gh-121018: Fix typo in NEWS entry (GH-121510) (#121516)
Sam Gross [Mon, 8 Jul 2024 21:19:29 +0000 (17:19 -0400)] 
[3.12] gh-121018: Fix typo in NEWS entry (GH-121510) (#121516)

(cherry picked from commit 218edaf0ffe6ef38349047f378649f93d280e23e)

16 months ago[3.12] gh-121461: Fix os.path.normpath documentation indentation (GH-121466) (#121473)
Miss Islington (bot) [Mon, 8 Jul 2024 03:58:26 +0000 (05:58 +0200)] 
[3.12] gh-121461: Fix os.path.normpath documentation indentation (GH-121466) (#121473)

gh-121461: Fix os.path.normpath documentation indentation (GH-121466)
(cherry picked from commit bf74db731bf108e880348f2925160af61570dbf4)

Co-authored-by: CBerJun <121291537+CBerJun@users.noreply.github.com>
16 months ago[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-121437) (#121442)
Miss Islington (bot) [Sat, 6 Jul 2024 18:11:28 +0000 (20:11 +0200)] 
[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-121437) (#121442)

Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-121437)

regen dependencies
(cherry picked from commit 53e12025cd7d7ee46ce10cc8f1b722c55716b892)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
16 months ago[3.12] Update example of str.split, bytes.split (GH-121287) (#121416)
Miss Islington (bot) [Fri, 5 Jul 2024 20:23:00 +0000 (22:23 +0200)] 
[3.12] Update example of str.split, bytes.split (GH-121287) (#121416)

Update example of str.split, bytes.split (GH-121287)

In `{str,bytes}.strip(chars)`, multiple characters are not treated as a
prefix/suffix, but as individual characters. This may make users confuse
whether `split` has similar behavior.
Users may incorrectly expect that
`'Good morning, John.'.split(', .') == ['Good', 'morning', 'John']`

Adding a bit of clarification in the doc.

(cherry picked from commit 892e3a1b708391cb43517a141f9b9712e047b8a4)

Co-authored-by: Yuxin Wu <ppwwyyxxc@gmail.com>
Co-authored-by: Yuxin Wu <ppwwyyxx@users.noreply.github.com>
16 months ago[3.12] gh-121390: tracemalloc: Fix tracebacks memory leak (GH-121391) (#121393)
Miss Islington (bot) [Fri, 5 Jul 2024 06:59:06 +0000 (08:59 +0200)] 
[3.12] gh-121390: tracemalloc: Fix tracebacks memory leak (GH-121391) (#121393)

gh-121390: tracemalloc: Fix tracebacks memory leak (GH-121391)

The tracemalloc_tracebacks hash table has traceback keys and NULL
values, but its destructors do not reflect this -- key_destroy_func is
NULL while value_destroy_func is raw_free. Swap these to free the
traceback keys instead.
(cherry picked from commit db39bc42f90c151b298f97b780e62703adbf1221)

Co-authored-by: Josh Brobst <jbrobst@proton.me>
16 months ago[3.12] gh-90437: Fix __main__.py documentation wording (GH-116309) (GH-121386)
Miss Islington (bot) [Thu, 4 Jul 2024 22:55:54 +0000 (00:55 +0200)] 
[3.12] gh-90437: Fix __main__.py documentation wording (GH-116309) (GH-121386)

gh-90437: Fix __main__.py documentation wording (GH-116309)
(cherry picked from commit cb688bab08559079d0ee9ffd841dd6eb11116181)

Co-authored-by: Ali Tavallaie <tavallaie@users.noreply.github.com>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
16 months ago[3.12] gh-121084: Fix test_typing random leaks (GH-121360) (#121372)
Miss Islington (bot) [Thu, 4 Jul 2024 18:00:08 +0000 (20:00 +0200)] 
[3.12] gh-121084: Fix test_typing random leaks (GH-121360) (#121372)

gh-121084: Fix test_typing random leaks (GH-121360)

Clear typing ABC caches when running tests for refleaks (-R option):
call _abc_caches_clear() on typing abstract classes and their
subclasses.
(cherry picked from commit 5f660e8e2ca3acfb89ccbdd990f072149b6baa6a)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] gh-121355: Fix incorrect word in simple_stmts.rst (GH-121356) (#121363)
Miss Islington (bot) [Thu, 4 Jul 2024 13:43:31 +0000 (15:43 +0200)] 
[3.12] gh-121355: Fix incorrect word in simple_stmts.rst (GH-121356) (#121363)

(cherry picked from commit 715ec630dd78819ed79cad5ac28617daefe1e745)

Co-authored-by: Jongbum Won <71166964+Wondaeng@users.noreply.github.com>
16 months ago[3.12] gh-117983: Defer import of threading for lazy module loading (GH-120233) ...
Miss Islington (bot) [Wed, 3 Jul 2024 21:09:00 +0000 (23:09 +0200)] 
[3.12] gh-117983: Defer import of threading for lazy module loading (GH-120233) (GH-121350)

gh-117983: Defer import of threading for lazy module loading (GH-120233)

As noted in gh-117983, the import importlib.util can be triggered at
interpreter startup under some circumstances, so adding threading makes
it a potentially obligatory load.
Lazy loading is not used in the stdlib, so this removes an unnecessary
load for the majority of users and slightly increases the cost of the
first lazily loaded module.

An obligatory threading load breaks gevent, which monkeypatches the
stdlib. Although unsupported, there doesn't seem to be an offsetting
benefit to breaking their use case.

For reference, here are benchmarks for the current main branch:

```
❯ hyperfine -w 8 './python -c "import importlib.util"'
Benchmark 1: ./python -c "import importlib.util"
  Time (mean ± σ):       9.7 ms ±   0.7 ms    [User: 7.7 ms, System: 1.8 ms]
  Range (min … max):     8.4 ms …  13.1 ms    313 runs
```

And with this patch:

```
❯ hyperfine -w 8 './python -c "import importlib.util"'
Benchmark 1: ./python -c "import importlib.util"
  Time (mean ± σ):       8.4 ms ±   0.7 ms    [User: 6.8 ms, System: 1.4 ms]
  Range (min … max):     7.2 ms …  11.7 ms    352 runs
```

Compare to:

```
❯ hyperfine -w 8 './python -c pass'
Benchmark 1: ./python -c pass
  Time (mean ± σ):       7.6 ms ±   0.6 ms    [User: 5.9 ms, System: 1.6 ms]
  Range (min … max):     6.7 ms …  11.3 ms    390 runs
```

This roughly halves the import time of importlib.util.
(cherry picked from commit 94f50f8ee6872007d46c385f7af253497273255a)

Co-authored-by: Chris Markiewicz <effigies@gmail.com>
16 months ago[3.12] gh-121035: Update PNG image for logging flow diagram. (GH-121323) (GH-121325)
Vinay Sajip [Wed, 3 Jul 2024 12:02:02 +0000 (13:02 +0100)] 
[3.12] gh-121035: Update PNG image for logging flow diagram. (GH-121323) (GH-121325)

(cherry picked from commit 26d24eeb90d781e381b97d64b4dcb1ee4dd891fe)

16 months ago[3.12] gh-121035: Further improve logging flow diagram with respect to dark/light...
Vinay Sajip [Wed, 3 Jul 2024 10:40:26 +0000 (11:40 +0100)] 
[3.12] gh-121035: Further improve logging flow diagram with respect to dark/light modes. (GH-121265) (GH-121321)

(cherry picked from commit 089835469d5efbea4793cd611b43cb8387f2e7e5)

16 months ago[3.12] gh-121035: Improve logging flow diagram for dark/light modes. (GH-121254)...
Vinay Sajip [Wed, 3 Jul 2024 09:48:34 +0000 (10:48 +0100)] 
[3.12] gh-121035: Improve logging flow diagram for dark/light modes. (GH-121254) (GH-121316)

(cherry picked from commit bfe0e4d7696647a546110328510bdb98146ad2f2)

16 months ago[3.12] docs: Fix "Py_TPFLAGS_MANAGED_WEAKREF is set in tp_flags" (GH-112237) (#121310)
Miss Islington (bot) [Wed, 3 Jul 2024 08:20:02 +0000 (10:20 +0200)] 
[3.12] docs: Fix "Py_TPFLAGS_MANAGED_WEAKREF is set in tp_flags" (GH-112237) (#121310)

docs: Fix "Py_TPFLAGS_MANAGED_WEAKREF is set in tp_flags" (GH-112237)
(cherry picked from commit 4232976b02cb999335c6bfdec3315520b21954f2)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
16 months ago[3.12] gh-121196: Document `dict.fromkeys` params as pos-only (GH-121197) (#121243)
Miss Islington (bot) [Mon, 1 Jul 2024 20:37:19 +0000 (22:37 +0200)] 
[3.12] gh-121196: Document `dict.fromkeys` params as pos-only (GH-121197) (#121243)

gh-121196: Document `dict.fromkeys` params as pos-only (GH-121197)
(cherry picked from commit 1dc9a4f6b20148fd4ef2eb2800a6c65224828181)

Co-authored-by: sobolevn <mail@sobolevn.me>
16 months ago[3.12] gh-114104: clarify asynchronous comprehension docs to match runtime behavior...
Miss Islington (bot) [Mon, 1 Jul 2024 16:41:18 +0000 (18:41 +0200)] 
[3.12] gh-114104: clarify asynchronous comprehension docs to match runtime behavior (GH-121175) (#121235)

gh-114104: clarify asynchronous comprehension docs to match runtime behavior (GH-121175)
(cherry picked from commit 91313afdb392d0d6105e9aaa57b5a50112b613e7)

Co-authored-by: Danny Yang <yangdanny97@users.noreply.github.com>
16 months ago[3.12] gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228) (#121231)
Miss Islington (bot) [Mon, 1 Jul 2024 16:05:30 +0000 (18:05 +0200)] 
[3.12] gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228) (#121231)

gh-121200: Fix test_expanduser_pwd2() of test_posixpath (GH-121228)

Call getpwnam() to get pw_dir, since it can be different than
getpwall() pw_dir.
(cherry picked from commit 02cb5fdee391670d63b2fc0a92ca9b36a32ac95a)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] gh-121200: Log pwd entry in test_expanduser_pwd2() (GH-121207) (#121214)
Miss Islington (bot) [Mon, 1 Jul 2024 10:02:34 +0000 (12:02 +0200)] 
[3.12] gh-121200: Log pwd entry in test_expanduser_pwd2() (GH-121207) (#121214)

gh-121200: Log pwd entry in test_expanduser_pwd2() (GH-121207)

Use subTest() to log the pwd entry in test_expanduser_pwd2() of
test_posixpath to help debugging.
(cherry picked from commit 05a6f8da6042cc87da1cd3824c1375d12753e5a1)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] gh-121084: Call _abc_registry_clear() when checking refleaks (GH-121191) ...
Miss Islington (bot) [Mon, 1 Jul 2024 09:29:23 +0000 (11:29 +0200)] 
[3.12] gh-121084: Call _abc_registry_clear() when checking refleaks (GH-121191) (#121209)

gh-121084: Call _abc_registry_clear() when checking refleaks (GH-121191)

dash_R_cleanup() now calls _abc_registry_clear() before calling again
register().
(cherry picked from commit c766ad206ea60b1e0edcb625b99e7631954a984f)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] gh-121188: Sanitize invalid XML characters in regrtest (GH-121195) (#121205)
Miss Islington (bot) [Mon, 1 Jul 2024 08:47:38 +0000 (10:47 +0200)] 
[3.12] gh-121188: Sanitize invalid XML characters in regrtest (GH-121195) (#121205)

gh-121188: Sanitize invalid XML characters in regrtest (GH-121195)

When creating the JUnit XML file, regrtest now escapes characters
which are invalid in XML, such as the chr(27) control character used
in ANSI escape sequences.
(cherry picked from commit af8c3d7a26d605099f5b3406a8d33ecddb77e8fb)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] [doc] Update element positions and styles in logging flow diagram. (GH-121182...
Miss Islington (bot) [Sun, 30 Jun 2024 13:53:10 +0000 (15:53 +0200)] 
[3.12] [doc] Update element positions and styles in logging flow diagram. (GH-121182) (GH-121184)

(cherry picked from commit 2a455bbe8fd91a688ae20509a2fdc8beaa8c8447)

16 months ago[3.12] gh-119447: Fix build with _PY_SHORT_FLOAT_REPR == 0 (#121178) (#121180)
Victor Stinner [Sun, 30 Jun 2024 10:02:08 +0000 (12:02 +0200)] 
[3.12] gh-119447: Fix build with _PY_SHORT_FLOAT_REPR == 0 (#121178) (#121180)

gh-119447: Fix build with _PY_SHORT_FLOAT_REPR == 0 (#121178)

(cherry picked from commit c3677befbecbd7fa94cde8c1fecaa4cc18e6aa2b)

Co-authored-by: Yureka <yuka@yuka.dev>
16 months ago[3.12] GH-119054: Add alt text to pathlib inheritance diagram (GH-121158) (#121169)
Miss Islington (bot) [Sat, 29 Jun 2024 17:53:27 +0000 (19:53 +0200)] 
[3.12] GH-119054: Add alt text to pathlib inheritance diagram (GH-121158) (#121169)

GH-119054: Add alt text to pathlib inheritance diagram (GH-121158)
(cherry picked from commit 6b280a84988ca221b5bdc1077a914e873790cce5)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.12] GH-119054: Fix pathlib docs subtitle word order (#121167)
Barney Gale [Sat, 29 Jun 2024 17:50:01 +0000 (18:50 +0100)] 
[3.12] GH-119054: Fix pathlib docs subtitle word order (#121167)

When backporting GH-120505 to 3.12, I accidentally transposed
"Permissions and ownership" into "Ownership and permissions".
Swap it back for consistency with 3.13 and main.

16 months ago[3.12] GH-119054: Add "Expanding and resolving paths" section to pathlib docs. (GH...
Barney Gale [Sat, 29 Jun 2024 15:38:39 +0000 (16:38 +0100)] 
[3.12] GH-119054: Add "Expanding and resolving paths" section to pathlib docs. (GH-120970) (#121156)

Add dedicated subsection for `home()`, `expanduser()`, `cwd()`,
`absolute()`, `resolve()` and `readlink()`. The position of this section
keeps all the `Path` constructors (`Path()`, `Path.from_uri()`,
`Path.home()` and `Path.cwd()`) near the top. Within the section, closely
related methods are kept adjacent. Specifically:

- `home()` and `expanduser()` (the former calls the latter)
- `cwd()` and `absolute()` (the former calls the latter)
- `absolute()` and `resolve()` (both make paths absolute)
- `resolve()` and `readlink()` (both read symlink targets)
- Ditto `cwd()` and `absolute()`
- Ditto `absolute()` and `resolve()`

The "Other methods" section is removed.

(cherry picked from commit d6d8707ff217f211f3a2e48084cc0ddfa41efc4d)

16 months ago[3.12] gh-121101: Document -Wall option (an alias for -Walways) (GH-121102) (#121147)
Miss Islington (bot) [Sat, 29 Jun 2024 08:27:22 +0000 (10:27 +0200)] 
[3.12] gh-121101: Document -Wall option (an alias for -Walways) (GH-121102) (#121147)

gh-121101: Document -Wall option (an alias for -Walways) (GH-121102)
(cherry picked from commit 0a1e8ff9c15675fdc4d07fa6c59f83808bf00798)

Co-authored-by: Wim Jeantine-Glenn <jump@wimglenn.com>
16 months ago[3.12] gh-120713: Normalize year with century for datetime.strftime (GH-120820) ...
Serhiy Storchaka [Sat, 29 Jun 2024 06:54:27 +0000 (09:54 +0300)] 
[3.12] gh-120713: Normalize year with century for datetime.strftime (GH-120820) (GH-121145)

(cherry picked from commit 6d34938dc8163f4a4bcc68069a1645a7ab76e935)

Co-authored-by: blhsing <blhsing@gmail.com>
16 months ago[3.12] doc: Mention the missing reflected special methods for all binary operations...
Miss Islington (bot) [Sat, 29 Jun 2024 06:42:46 +0000 (08:42 +0200)] 
[3.12] doc: Mention the missing reflected special methods for all binary operations (GH-119931) (#120064)

doc: Mention the missing reflected special methods for all binary operations (GH-119931)
(cherry picked from commit bf5e1065f4ec2077c6ca352fc1ad940a76d1f6c9)

Co-authored-by: Paulo Freitas <me@paulofreitas.me>
16 months ago[3.12] gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c (GH...
Miss Islington (bot) [Fri, 28 Jun 2024 23:17:51 +0000 (01:17 +0200)] 
[3.12] gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c (GH-121136) (#121140)

gh-121137: Add missing Py_DECREF calls for ADDITEMS opcode of _pickle.c (GH-121136)

PyObject_GetAttr returns a new reference, but this reference is never decremented using Py_DECREF, so Py_DECREF calls to this referece are added
(cherry picked from commit 92893fd8dc803ed7cdde55d29d25f84ccb5e3ef0)

Co-authored-by: Justin Applegate <70449145+Legoclones@users.noreply.github.com>
16 months ago[3.12] gh-115986 Improve pprint docs formatting (GH-117401) (GH-121099)
Miss Islington (bot) [Fri, 28 Jun 2024 16:21:56 +0000 (18:21 +0200)] 
[3.12] gh-115986 Improve pprint docs formatting (GH-117401) (GH-121099)

gh-115986 Improve pprint docs formatting (GH-117401)

* Move pprinter parameters description to the table

The change improves readability.
Suggested in the GHGH-116085 PR discussion.

* Make pprint doc with params markup

* Fix formatting
Indentation of code blocks made them nested
"Version changed" is better placed after the code block

* Fix formatting for tests

* fix code indentation for autotests

* Fix identation for autotests

* Remove duplication of the parameters' description

* Rearrange parameters description in a correct order

---------

(cherry picked from commit 0890ad7c024ccf29614849b6ffadcb92c0e91ce7)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
16 months ago[3.12] gh-120868: Fix breaking change in `logging.config` when using `QueueHandler...
Miss Islington (bot) [Fri, 28 Jun 2024 16:10:53 +0000 (18:10 +0200)] 
[3.12] gh-120868: Fix breaking change in `logging.config` when using `QueueHandler` (GH-120872) (GH-121077)

(cherry picked from commit 7d9c68513d112823a9a6cdc7453b998b2c24eb4c)

16 months ago[3.12] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False...
Serhiy Storchaka [Fri, 28 Jun 2024 14:52:07 +0000 (17:52 +0300)] 
[3.12] gh-121018: Fix more cases of exiting in argparse when exit_on_error=False (GH-121056) (GH-121129)

* parse_intermixed_args() now raises ArgumentError instead of calling
  error() if exit_on_error is false.
* Internal code now always raises ArgumentError instead of calling
  error(). It is then caught at the higher level and error() is called if
  exit_on_error is true.
(cherry picked from commit 81a654a3425eaa05a51342509089533c1f623f1b)

16 months ago[3.12] gh-121096: Ignore dlopen() leaks in Valgrind suppression file (GH-121097)...
Miss Islington (bot) [Fri, 28 Jun 2024 11:17:30 +0000 (13:17 +0200)] 
[3.12] gh-121096: Ignore dlopen() leaks in Valgrind suppression file (GH-121097) (#121123)

gh-121096: Ignore dlopen() leaks in Valgrind suppression file (GH-121097)
(cherry picked from commit 6e63d84e43fdce3a5bdb899b024cf947d4e48900)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.12] gh-105623 Fix performance degradation in logging RotatingFileHandler (GH-10588...
Miss Islington (bot) [Fri, 28 Jun 2024 09:09:38 +0000 (11:09 +0200)] 
[3.12] gh-105623 Fix performance degradation in logging RotatingFileHandler (GH-105887) (GH-121116)

The check for whether the log file is a real file is expensive on NFS
filesystems.  This commit reorders the rollover condition checking to
not do the file type check if the expected file size is less than the
rotation threshold.

(cherry picked from commit e9b4ec614b66d11623b80471409c16a109f888d5)

Co-authored-by: Craig Robson <craig@zhatt.com>
Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
16 months ago[3.12] gh-121035: Update logging flow chart to include the lastResort handler. (GH...
Miss Islington (bot) [Thu, 27 Jun 2024 22:20:36 +0000 (00:20 +0200)] 
[3.12] gh-121035: Update logging flow chart to include the lastResort handler. (GH-121036) (GH-121105)

(cherry picked from commit 237baf4d7a789deb153fbc1fc3863550949d5da2)

16 months ago[3.12] gh-120937: Reference weakref from the `__del__` documentation (GH-120940)...
Miss Islington (bot) [Wed, 26 Jun 2024 20:14:30 +0000 (22:14 +0200)] 
[3.12] gh-120937: Reference weakref from the `__del__` documentation (GH-120940) (#121062)

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.12] gh-121018: Ensure ArgumentParser.parse_args with exit_on_error=False raises...
Miss Islington (bot) [Wed, 26 Jun 2024 10:16:44 +0000 (12:16 +0200)] 
[3.12] gh-121018: Ensure ArgumentParser.parse_args with exit_on_error=False raises instead of exiting when given unrecognized arguments (GH-121019) (GH-121031)

(cherry picked from commit 0654336dd5138aec04e3017e15ccbb90a44e053d)

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

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.12] gh-121025: Improve partialmethod.__repr__ (GH-121033) (GH-121038)
Miss Islington (bot) [Wed, 26 Jun 2024 09:29:59 +0000 (11:29 +0200)] 
[3.12] gh-121025: Improve partialmethod.__repr__ (GH-121033) (GH-121038)

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.12] gh-120155: Fix Coverity issue in parse_string() (GH-120997) (#121006)
Miss Islington (bot) [Tue, 25 Jun 2024 17:40:08 +0000 (19:40 +0200)] 
[3.12] gh-120155: Fix Coverity issue in parse_string() (GH-120997) (#121006)

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.12] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP...
Miss Islington (bot) [Tue, 25 Jun 2024 16:31:01 +0000 (18:31 +0200)] 
[3.12] gh-114053: Fix another edge case involving `get_type_hints`, PEP 695 and PEP 563 (GH-120272) (#121004)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.12] Doc/README: Document 'make htmllive' (GH-120692) (#120991)
Miss Islington (bot) [Tue, 25 Jun 2024 09:15:11 +0000 (11:15 +0200)] 
[3.12] Doc/README: Document 'make htmllive' (GH-120692) (#120991)

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.12] gh-120661: improve example for basic type hints (GH-120934) (#120988)
Miss Islington (bot) [Tue, 25 Jun 2024 08:25:11 +0000 (10:25 +0200)] 
[3.12] gh-120661: improve example for basic type hints (GH-120934) (#120988)

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.12] gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822) (#120986)
Miss Islington (bot) [Tue, 25 Jun 2024 08:11:22 +0000 (10:11 +0200)] 
[3.12] gh-120671: Fix PY_CHECK_CC_WARNING() in configure.ac (GH-120822) (#120986)

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.12] GH-119054: Add "Permissions and ownership" section to pathlib docs. (GH-120505...
Barney Gale [Mon, 24 Jun 2024 19:32:24 +0000 (20:32 +0100)] 
[3.12] GH-119054: Add "Permissions and ownership" section to pathlib docs. (GH-120505) (#120968)

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

(cherry picked from commit e4a97a7fb1c03d3b6ec6efbeff553a0230e003c7)

16 months ago[3.12] gh-120373: Mark test_audit.test_http as requiring the network resource (GH...
Miss Islington (bot) [Mon, 24 Jun 2024 13:37:51 +0000 (15:37 +0200)] 
[3.12] gh-120373: Mark test_audit.test_http as requiring the network resource (GH-120374) (#120949)

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.12] gh-119614: Fix truncation of strings with embedded null characters in Tkinter...
Miss Islington (bot) [Mon, 24 Jun 2024 09:39:56 +0000 (11:39 +0200)] 
[3.12] gh-119614: Fix truncation of strings with embedded null characters in Tkinter (GH-120909) (GH-120939)

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.12] gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage...
Miss Islington (bot) [Mon, 24 Jun 2024 08:45:46 +0000 (10:45 +0200)] 
[3.12] gh-112169: Documented getaddrinfo/getnameinfo default loop executor usage and implications. (GH-112191) (#120936)

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.12] gh-119824: Revert the where solution and use meta commands (#120928)
Tian Gao [Sun, 23 Jun 2024 21:58:10 +0000 (14:58 -0700)] 
[3.12] gh-119824: Revert the where solution and use meta commands (#120928)

16 months ago[3.12] Docs makefile/RTD: Use uv if installed (GH-120711) (#120923)
Hugo van Kemenade [Sun, 23 Jun 2024 19:47:59 +0000 (13:47 -0600)] 
[3.12] Docs makefile/RTD: Use uv if installed (GH-120711) (#120923)

16 months ago[3.12] gh-120910: Fix issue resolving relative paths outside site-packages. (GH-12091...
Jason R. Coombs [Sun, 23 Jun 2024 17:30:18 +0000 (13:30 -0400)] 
[3.12] gh-120910: Fix issue resolving relative paths outside site-packages. (GH-120911) (#120918)

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

16 months ago[3.12] Typing docs: normalize some indents in code examples (GH-120912) (#120916)
Miss Islington (bot) [Sun, 23 Jun 2024 16:23:01 +0000 (18:23 +0200)] 
[3.12] Typing docs: normalize some indents in code examples (GH-120912) (#120916)

Co-authored-by: Nyakku Shigure <sigure.qaq@gmail.com>
16 months ago[3.12] gh-101830: Fix Tcl_Obj to string conversion (GH-120884) (GH-120913)
Serhiy Storchaka [Sun, 23 Jun 2024 16:02:43 +0000 (19:02 +0300)] 
[3.12] gh-101830: Fix Tcl_Obj to string conversion (GH-120884) (GH-120913)

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

16 months ago[3.12] gh-119960: Add information about regex flags in re module functions (GH-119978...
Bénédikt Tran [Sun, 23 Jun 2024 16:02:24 +0000 (18:02 +0200)] 
[3.12] gh-119960: Add information about regex flags in re module functions (GH-119978) (#120908)

gh-119960: Add information about regex flags in re module functions (#119978)

(cherry picked from commit a86e6255c371e14cab8680dee979a7393b339ce5)

Co-authored-by: Awbert <119314310+SweetyAngel@users.noreply.github.com>
16 months ago[3.12] gh-120896: Fix typo in version changed note of `urllib.parse.urlparse()` ...
Miss Islington (bot) [Sun, 23 Jun 2024 12:40:11 +0000 (14:40 +0200)] 
[3.12] gh-120896: Fix typo in version changed note of `urllib.parse.urlparse()` (GH-120898) (#120903)

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.12] gh-119003: Clarify slice assignments (GH-119935) (#120848)
Miss Islington (bot) [Sun, 23 Jun 2024 12:34:25 +0000 (14:34 +0200)] 
[3.12] gh-119003: Clarify slice assignments (GH-119935) (#120848)

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

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

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

(cherry picked from commit a046c848c1df0cf98092e9696594d3fb836e3530)

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

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.12] gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812) ...
Miss Islington (bot) [Sat, 22 Jun 2024 11:14:31 +0000 (13:14 +0200)] 
[3.12] gh-120811: Fix reference leak upon `_PyContext_Exit` failure (GH-120812) (#120844)

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.12] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) (GH-120865)
Miss Islington (bot) [Sat, 22 Jun 2024 07:10:04 +0000 (09:10 +0200)] 
[3.12] gh-104855: Update Tkinter tests for Tcl/Tk 8.7 and 9.0 (GH-120824) (GH-120865)

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.12] gh-120838: Add a Note in the Docs About Expectations for Py_Finalize() (gh...
Miss Islington (bot) [Fri, 21 Jun 2024 19:12:08 +0000 (21:12 +0200)] 
[3.12] gh-120838: Add a Note in the Docs About Expectations for Py_Finalize() (gh-120853)

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

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

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.12] gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442...
Miss Islington (bot) [Fri, 21 Jun 2024 11:08:22 +0000 (13:08 +0200)] 
[3.12] gh-120384: Fix array-out-of-bounds crash in `list_ass_subscript` (GH-120442) (#120825)

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.12] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character...
Miss Islington (bot) [Thu, 20 Jun 2024 21:10:35 +0000 (23:10 +0200)] 
[3.12] gh-111259: Document idiomatic RE pattern (?s:.) that matches any character (GH-120745) (GH-120814)

(cherry picked from commit a2f6f7dd26128b834c6e66fe1ceac3ac751143f5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
16 months ago[3.12] gh-119698: fix `symtable.Class.get_methods` and document its behaviour correct...
Jelle Zijlstra [Thu, 20 Jun 2024 05:12:31 +0000 (22:12 -0700)] 
[3.12] gh-119698: fix `symtable.Class.get_methods` and document its behaviour correctly (#120151) (#120776)

(cherry picked from commit b8a8e04fec76ad7f7c3e5149114dd2ee8a5caecc)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
16 months ago[3.12] Fix typos in comments (GH-120481) (#120775)
Terry Jan Reedy [Thu, 20 Jun 2024 03:59:31 +0000 (23:59 -0400)] 
[3.12] Fix typos in comments (GH-120481) (#120775)

Only 1 applicable change backported to 3.12.

(cherry picked from commit 656a1c8)

Co-authored-by: Xie Yanbo xieyanbo@gmail.com
16 months ago[3.12] gh-118820: Zero-valued flag enum has no name (GH-118848) (GH120758)
Miss Islington (bot) [Wed, 19 Jun 2024 22:11:58 +0000 (00:11 +0200)] 
[3.12] gh-118820: Zero-valued flag enum has no name (GH-118848) (GH120758)

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.12] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec...
Miss Islington (bot) [Wed, 19 Jun 2024 20:53:19 +0000 (22:53 +0200)] 
[3.12] gh-120732: Fix `name` passing to `Mock`, when using kwargs to `create_autospec` (GH-120737) (#120761)

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.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-120753) (#120756)
Miss Islington (bot) [Wed, 19 Jun 2024 20:01:25 +0000 (22:01 +0200)] 
[3.12] Regen ``Doc/requirements-oldest-sphinx.txt`` (GH-120753) (#120756)

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

(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.12] gh-120722: Set position on RETURN_VALUE in lambda (GH-120724) (#120739)
Jelle Zijlstra [Wed, 19 Jun 2024 13:19:39 +0000 (06:19 -0700)] 
[3.12] gh-120722: Set position on RETURN_VALUE in lambda (GH-120724) (#120739)

(cherry picked from commit d8f27cb1141fd3575de816438ed80a916c0560ed)

16 months ago[3.12] gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507)...
Miss Islington (bot) [Wed, 19 Jun 2024 10:23:29 +0000 (12:23 +0200)] 
[3.12] gh-119506: fix `_io.TextIOWrapper.write()` write during flush (GH-119507) (#119965)

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.12] gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450...
Miss Islington (bot) [Wed, 19 Jun 2024 07:20:16 +0000 (09:20 +0200)] 
[3.12] gh-120449: fix ``test_pyclbr`` introspection for mangled names (GH-120450) (GH-120701)

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.12] gh-120662: Improve `smtplib` example (GH-120668) (#120682)
Miss Islington (bot) [Tue, 18 Jun 2024 12:04:06 +0000 (14:04 +0200)] 
[3.12] gh-120662: Improve `smtplib` example (GH-120668) (#120682)

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.12] gh-119897: Revert buggy optimization which was removed in 3.13 (#120467)
Irit Katriel [Tue, 18 Jun 2024 09:45:40 +0000 (10:45 +0100)] 
[3.12] gh-119897: Revert buggy optimization which was removed in 3.13 (#120467)

16 months ago[3.12] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120670)
Miss Islington (bot) [Tue, 18 Jun 2024 09:44:02 +0000 (11:44 +0200)] 
[3.12] gh-120590: Fix test_pydoc in the refleak hunting mode (GH-120615) (GH-120670)

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.12] gh-119824: Print stack entry when user input is needed … (#120594)
Tian Gao [Mon, 17 Jun 2024 17:40:49 +0000 (10:40 -0700)] 
[3.12] gh-119824: Print stack entry when user input is needed … (#120594)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
16 months ago[3.12] gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-12058...
Miss Islington (bot) [Mon, 17 Jun 2024 07:01:15 +0000 (09:01 +0200)] 
[3.12] gh-120586: Fix several "unused function" warnings in `posixmodule.c` (GH-120588) (#120617)

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.12] gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 ...
Miss Islington (bot) [Mon, 17 Jun 2024 05:54:33 +0000 (07:54 +0200)] 
[3.12] gh-112346: Document the OS byte in `gzip.compress` output change in 3.11 (GH-120480) (#120613)

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.12] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570...
Miss Islington (bot) [Sun, 16 Jun 2024 21:03:09 +0000 (23:03 +0200)] 
[3.12] gh-120567: Clarify weekday return in calendar.monthrange docstring (GH-120570) (#120598)

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.12] gh-118596: Add thread-safety clarifications to the SSLContext documentation...
Miss Islington (bot) [Sun, 16 Jun 2024 20:34:18 +0000 (22:34 +0200)] 
[3.12] gh-118596: Add thread-safety clarifications to the SSLContext documentation (GH-118597) (#120596)

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.12] Docs: remove temporary hardcoded links and move inline JS to own file (GH...
Hugo van Kemenade [Sun, 16 Jun 2024 15:14:22 +0000 (09:14 -0600)] 
[3.12] Docs: remove temporary hardcoded links and move inline JS to own file (GH-120348) (#120589)

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

16 months ago[3.12] gh-120572: add missing parentheses in TypeIs documentation (GH-120573) (#120578)
Nyuan Zhang [Sun, 16 Jun 2024 06:50:27 +0000 (14:50 +0800)] 
[3.12] gh-120572: add missing parentheses in TypeIs documentation (GH-120573) (#120578)

16 months ago[3.12] gh-120360: Add self as IDLE doc owner (GH-120571) (#120577)
Miss Islington (bot) [Sun, 16 Jun 2024 06:12:48 +0000 (08:12 +0200)] 
[3.12] gh-120360: Add self as IDLE doc owner (GH-120571) (#120577)

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.12] gh-120417: Remove unused import in idlelib (GH-120420) (#120574)
Terry Jan Reedy [Sun, 16 Jun 2024 05:45:32 +0000 (01:45 -0400)] 
[3.12] gh-120417: Remove unused import in idlelib (GH-120420) (#120574)

(cherry picked from commit 4c6d4f5)

Co-authored-by: Victor Stinner vstinner@python.org
16 months ago[3.12] annotations: expand documentation on "simple" assignment targets (GH-120535...
Miss Islington (bot) [Sat, 15 Jun 2024 15:24:21 +0000 (17:24 +0200)] 
[3.12] annotations: expand documentation on "simple" assignment targets (GH-120535) (#120556)

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.12] Add some more edge-case tests for `inspect.get_annotations` with `eval_str...
Miss Islington (bot) [Sat, 15 Jun 2024 13:10:01 +0000 (15:10 +0200)] 
[3.12] Add some more edge-case tests for `inspect.get_annotations` with `eval_str=True` (GH-120550) (#120552)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.12] gh-120128: fix description of argument to ipaddress.collapse_addresses() ...
Miss Islington (bot) [Sat, 15 Jun 2024 12:12:45 +0000 (14:12 +0200)] 
[3.12] gh-120128: fix description of argument to ipaddress.collapse_addresses() (GH-120131) (#120136)

gh-120128: fix description of argument to ipaddress.collapse_addresses() (GH-120131)

The argument to collapse_addresses() is now described as an *iterable*
(rather than *iterator*).
(cherry picked from commit f878d46e5614f08a9302fcb6fc611ef49e9acf2f)

Co-authored-by: Jan Kaliszewski <zuo@kaliszewski.net>
16 months ago[3.12] gh-120544: Add `else: fail()` to tests where exception is expected (GH-120545...
Miss Islington (bot) [Sat, 15 Jun 2024 11:54:22 +0000 (13:54 +0200)] 
[3.12] gh-120544: Add `else: fail()` to tests where exception is expected (GH-120545) (#120547)

gh-120544: Add `else: fail()` to tests where exception is expected (GH-120545)
(cherry picked from commit 42ebdd83bb194f054fe5a10b3caa0c3a95be3679)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
16 months ago[3.12] gh-120495: Fix incorrect exception handling in Tab Nanny (GH-120498) (#120549)
Miss Islington (bot) [Sat, 15 Jun 2024 11:21:05 +0000 (13:21 +0200)] 
[3.12] gh-120495: Fix incorrect exception handling in Tab Nanny (GH-120498) (#120549)

gh-120495: Fix incorrect exception handling in Tab Nanny (GH-120498)
(cherry picked from commit c501261c919ceb97c850ef9427a93326f06a8f2e)

Co-authored-by: Wulian233 <71213467+Wulian233@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
16 months ago[3.12] gh-119819: Conditional skip of logging tests that require multiprocessing...
Miss Islington (bot) [Sat, 15 Jun 2024 00:32:28 +0000 (02:32 +0200)] 
[3.12] gh-119819: Conditional skip of logging tests that require multiprocessing subprocess support (GH-120476) (#120532)

gh-119819: Conditional skip of logging tests that require multiprocessing subprocess support (GH-120476)

Skip tests that require multiprocessing subprocess support.
(cherry picked from commit 92f6d400f76b6a04dddd944568870f689c8fab5f)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
16 months ago[3.12] gh-120361: Add `nonmember` test with enum flags inside to `test_enum` (GH...
Miss Islington (bot) [Fri, 14 Jun 2024 17:59:12 +0000 (19:59 +0200)] 
[3.12] gh-120361: Add `nonmember` test with enum flags inside to `test_enum` (GH-120364) (#120512)

gh-120361: Add `nonmember` test with enum flags inside to `test_enum` (GH-120364)

* gh-120361: Add `nonmember` test with enum flags inside to `test_enum`
(cherry picked from commit 7fadfd82ebf6ea90b38cb3f2a046a51f8601a205)

Co-authored-by: Nikita Sobolev <mail@sobolevn.me>