]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
12 months ago[3.13] gh-122544: Change OS image in Azure pipeline to Ubuntu 24.04 (GH-125344) ...
Miss Islington (bot) [Wed, 6 Nov 2024 10:24:55 +0000 (11:24 +0100)] 
[3.13] gh-122544: Change OS image in Azure pipeline to Ubuntu 24.04 (GH-125344) (#126479)

Co-authored-by: Damien <81557462+Damien-Chen@users.noreply.github.com>
12 months ago[3.13] Fix possible null pointer dereference of freevars in _PyCompile_LookupArg...
Valery Fedorenko [Wed, 6 Nov 2024 08:10:04 +0000 (11:10 +0300)] 
[3.13] Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (gh-126238) (#126475)

[3.13] gh-126238: Fix possible null pointer dereference of freevars in _PyCompile_LookupArg (GH-126239)

* Replace Py_DECREF by Py_XDECREF

(cherry picked from commit 8525c9375f25e6ec0c0b5dfcab464703f6e78082)

Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
12 months ago[3.13] gh-70764: inspect.getclosurevars now identifies global variables with LOAD_GLO...
Miss Islington (bot) [Wed, 6 Nov 2024 00:18:32 +0000 (01:18 +0100)] 
[3.13] gh-70764: inspect.getclosurevars now identifies global variables with LOAD_GLOBAL (GH-120143) (#126459)

gh-70764: inspect.getclosurevars now identifies global variables with LOAD_GLOBAL (GH-120143)
(cherry picked from commit 83ba8c2bba834c0b92de669cac16fcda17485e0e)

Co-authored-by: blhsing <blhsing@gmail.com>
12 months ago[3.13] gh-89640: harden float word ordering (#125571 and #126387) (#126429)
Erlend E. Aasland [Tue, 5 Nov 2024 22:18:55 +0000 (23:18 +0100)] 
[3.13] gh-89640: harden float word ordering (#125571 and #126387) (#126429)

Properly detect float word ordering on Linux (gh-125571)

autoconf-archive patch by Dan Amelang.

(cherry picked from commit 26d627779f79d8d5650fe7be348432eccc28f8f9)

Hardcode WASM float word ordering to little endian (gh-126387)

(cherry picked from commit 532fc08102d62c04d55f5b8aac00bd9e7e12ff4b)

12 months agogh-126074: Removes unnecessary DLLs from embeddable package (GH-126143)
Miss Islington (bot) [Tue, 5 Nov 2024 21:08:44 +0000 (22:08 +0100)] 
gh-126074: Removes unnecessary DLLs from embeddable package (GH-126143)

(cherry picked from commit f51fd84034e2cbf458321c25ba6fd085a39d6f6f)

Co-authored-by: Steve Dower <steve.dower@python.org>
12 months ago[3.13] gh-126425: Refactor `_lsprof_Profiler_enable` (GH-126426) (#126442)
Miss Islington (bot) [Tue, 5 Nov 2024 12:48:18 +0000 (13:48 +0100)] 
[3.13] gh-126425: Refactor `_lsprof_Profiler_enable` (GH-126426) (#126442)

gh-126425: Refactor `_lsprof_Profiler_enable` (GH-126426)

- Explicit memory management for `None` objects (since we still try to treat immortal objects as regular objects)
- Respect possible errors of `sys.monitoring.register_callback` call
(cherry picked from commit 75872605aa78dbdfc5c4f025b0f90a7f37ba10c3)

Co-authored-by: sobolevn <mail@sobolevn.me>
12 months ago[3.13] gh-126417: Register multiprocessing proxy types to an appropriate collections...
Alex Waygood [Tue, 5 Nov 2024 11:22:44 +0000 (11:22 +0000)] 
[3.13] gh-126417: Register multiprocessing proxy types to an appropriate collections.abc class (#126419) (#126435)

Co-authored-by: Stephen Morton <github@tungol.org>
12 months ago[3.13] Doc: C API: Delete claim that `PyObject_Init` is GC-aware (GH-126418) (#126431)
Miss Islington (bot) [Tue, 5 Nov 2024 10:01:16 +0000 (11:01 +0100)] 
[3.13] Doc: C API: Delete claim that `PyObject_Init` is GC-aware (GH-126418) (#126431)

Doc: C API: Delete claim that `PyObject_Init` is GC-aware (GH-126418)
(cherry picked from commit 407c0366d9ccd2a36c6cc8bf92324856b16fd604)

Co-authored-by: Richard Hansen <rhansen@rhansen.org>
12 months ago[3.13] gh-126303: Fix pickling and copying of os.sched_param objects (GH-126336)...
Miss Islington (bot) [Tue, 5 Nov 2024 06:50:33 +0000 (07:50 +0100)] 
[3.13] gh-126303: Fix pickling and copying of os.sched_param objects (GH-126336) (GH-126423)

(cherry picked from commit d3840503b0f590ee574fbdf3c96626ff8b3c45f6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-125436: Doc: Add missing ``allow_unnamed_section`` parameter to ``ConfigPar...
Miss Islington (bot) [Tue, 5 Nov 2024 03:04:32 +0000 (04:04 +0100)] 
[3.13] gh-125436: Doc: Add missing ``allow_unnamed_section`` parameter to ``ConfigParser`` documentation (GH-125437) (#126421)

gh-125436: Doc: Add missing ``allow_unnamed_section`` parameter to ``ConfigParser`` documentation (GH-125437)

Add missing ``allow_unnamed_section`` parameter to ``ConfigParser`` doc, as well as to it's parent ``RawConfigParser``.
Split too long line on ``ConfigParser`` signature.
Add some sections about when some of ``RawConfigParser`` parameters were added.
(cherry picked from commit d9602265479bcd96dc377d92a34556baf34ac3cd)

Co-authored-by: lit <litlighilit@foxmail.com>
12 months ago[3.13] gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 (GH-126392)...
Hugo van Kemenade [Mon, 4 Nov 2024 17:46:26 +0000 (19:46 +0200)] 
[3.13] gh-101865: Docs: Keep co_lnotab deprecation for at least 3.14 (GH-126392) (#126403)

(cherry picked from commit eac41c5ddfadf52fbd84ee898ad56aedd5d90a41)

12 months ago[3.13] Doc: Fix typo in documentation for ``MAKE_FUNCTION`` opcode (GH-126396) ...
Miss Islington (bot) [Mon, 4 Nov 2024 17:35:12 +0000 (18:35 +0100)] 
[3.13] Doc: Fix typo in documentation for  ``MAKE_FUNCTION`` opcode (GH-126396) (#126406)

Doc: Fix typo in documentation for  ``MAKE_FUNCTION`` opcode (GH-126396)
(cherry picked from commit e5a4b402ae55f5eeeb44d3e7bc3f3ec39b249846)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
12 months ago[3.13] gh-125783: Add more tests to prevent regressions with the combination of ctype...
Miss Islington (bot) [Mon, 4 Nov 2024 10:58:20 +0000 (11:58 +0100)] 
[3.13] gh-125783: Add more tests to prevent regressions with the combination of ctypes and metaclasses. (GH-126126) (GH-126275)

gh-125783: Add more tests to prevent regressions with the combination of ctypes and metaclasses. (GH-126126)
(cherry picked from commit 6c67446a6e73ab0e9a26e4360412cbd2f5550e66)

Co-authored-by: Jun Komoda <45822440+junkmd@users.noreply.github.com>
12 months ago[3.13] Docs: turn getopt examples into doctests (GH-126377) (#126385)
Miss Islington (bot) [Mon, 4 Nov 2024 08:34:36 +0000 (09:34 +0100)] 
[3.13] Docs: turn getopt examples into doctests (GH-126377) (#126385)

(cherry picked from commit 0d80777981f95bbc79b146fc78b2189c82521ab9)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
12 months ago[3.13] gh-126165: Improve docs of function `math.isclose` (GH-126215) (#126380)
Miss Islington (bot) [Mon, 4 Nov 2024 04:14:05 +0000 (05:14 +0100)] 
[3.13] gh-126165: Improve docs of function `math.isclose` (GH-126215) (#126380)

gh-126165: Improve docs of function `math.isclose` (GH-126215)
(cherry picked from commit 081706f873b7d1a10b27016a9ed350b20c719709)

Co-authored-by: Zhikang Yan <2951256653@qq.com>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
12 months ago[3.13] Docs: Delist sqlite3 deprecation from "Pending removal in 3.14" (GH-126370...
Miss Islington (bot) [Sun, 3 Nov 2024 21:29:02 +0000 (22:29 +0100)] 
[3.13] Docs: Delist sqlite3 deprecation from "Pending removal in 3.14" (GH-126370) (#126372)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
12 months ago[3.13] gh-104400: Add more tests to pygettext (GH-108173) (GH-126361)
Miss Islington (bot) [Sun, 3 Nov 2024 14:30:16 +0000 (15:30 +0100)] 
[3.13] gh-104400: Add more tests to pygettext (GH-108173) (GH-126361)

(cherry picked from commit dcae5cd6abaae4f73e656ebc054f30d3f15ca7b8)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
12 months ago[3.13] gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101) (#126348)
Miss Islington (bot) [Sun, 3 Nov 2024 05:59:00 +0000 (06:59 +0100)] 
[3.13] gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101) (#126348)

gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101)

GH-113977, GH-120754: Remove unbounded reads from zipfile

Read without a size may read an unbounded amount of data + allocate
unbounded size buffers. Move to capped size reads to prevent potential
issues.

(cherry picked from commit 556dc9b8a78bad296513221f3f414a3f8fd0ae70)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Daniel Hillier <daniel.hillier@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
12 months ago[3.13] gh-125832: Clarify comment for inlined comprehensions as per PEP-709 (gh-12632...
Donghee Na [Sun, 3 Nov 2024 04:10:15 +0000 (13:10 +0900)] 
[3.13] gh-125832: Clarify comment for inlined comprehensions as per PEP-709 (gh-126322) (gh-126344)

* gh-125832: Clarify comment for inlined comprehensions as per PEP-709 (#126322)

* Fix comprehensions comment to inlined by pep 709

* Update spacing

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
* Add reference to PEP 709

---------

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
(cherry picked from commit 868bfcc02ed42a1042851830b79c6877b7f1c7a8)

* Add space

---------

Co-authored-by: rimchoi <hyerimc858@gmail.com>
12 months ago[3.13] gh-125761: Clarify repeated warning suppression criteria in warnings module...
Miss Islington (bot) [Sat, 2 Nov 2024 11:43:30 +0000 (12:43 +0100)] 
[3.13] gh-125761: Clarify repeated warning suppression criteria in warnings module (gh-126330)

(cherry picked from commit 10eeec2d4ffb6b09a6d925877b6d9ef6aa6bb59d)

Co-authored-by: 고병찬 <70642609+byungchanKo99@users.noreply.github.com>
12 months ago[3.13] gh-125522: Remove bare except in test_zlib.test_flushes (gh-126321) (gh-126327)
Miss Islington (bot) [Sat, 2 Nov 2024 08:51:28 +0000 (09:51 +0100)] 
[3.13] gh-125522: Remove bare except in test_zlib.test_flushes (gh-126321) (gh-126327)

gh-125522: Remove bare except in test_zlib.test_flushes (gh-126321)
(cherry picked from commit cfb1b2f0cb999558a30e61a9e1a62fdb7f55f6a4)

Co-authored-by: simple-is-great <103080930+simple-is-great@users.noreply.github.com>
12 months ago[3.13] gh-126138: Fix use-after-free in `_asyncio.Task` by evil `__getattribute__...
Miss Islington (bot) [Sat, 2 Nov 2024 08:09:18 +0000 (09:09 +0100)] 
[3.13] gh-126138: Fix use-after-free in `_asyncio.Task` by evil `__getattribute__` (GH-126305) (#126324)

gh-126138: Fix use-after-free in `_asyncio.Task` by evil `__getattribute__` (GH-126305)
(cherry picked from commit f032f6ba8fec6fab35edeec0eb40cd73e9d58928)

Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
12 months ago[3.13] gh-125875: Fix docs typo FORMAT_SPEC to FORMAT_WITH_SPEC (gh-126319) (gh-126320)
Miss Islington (bot) [Sat, 2 Nov 2024 05:16:24 +0000 (06:16 +0100)] 
[3.13] gh-125875: Fix docs typo FORMAT_SPEC to FORMAT_WITH_SPEC (gh-126319) (gh-126320)

12 months ago[3.13] docs: add a more precise example in enum doc (GH-121015) (#126306)
Miss Islington (bot) [Fri, 1 Nov 2024 23:17:35 +0000 (00:17 +0100)] 
[3.13] docs: add a more precise example in enum doc (GH-121015) (#126306)

docs: add a more precise example in enum doc (GH-121015)

* docs: add a more precise example

Previous example used manual integer value assignment in class based declaration but in functional syntax has been used auto value assignment what could be confusing for the new users. Additionally documentation doesn't show how to declare new enum via functional syntax with usage of the manual value assignment.

* docs: remove whitespace characters

* refactor: change example

---------

(cherry picked from commit ff257c7843d8ed0dffb6624f2f14996a46e74801)

Co-authored-by: Filip "Ret2Me" Poplewski <37419029+Ret2Me@users.noreply.github.com>
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
12 months ago[3.13] Doc: Add a single table as summary to math documentation (GH-125810) (GH-126308)
Miss Islington (bot) [Fri, 1 Nov 2024 23:11:40 +0000 (00:11 +0100)] 
[3.13] Doc: Add a single table as summary to math documentation (GH-125810) (GH-126308)

Doc: Add a single table as summary to math documentation (GH-125810)

* Summary for math module with separate tables

* Forgot remainder description

* Single table

* data instead of func

* Add arguments in the table

* Fix inconsistencies in pow documentation

* Remove full stops from the table

* Fix math.pow link

* Fix spacing

---------

(cherry picked from commit 74cf5967f345f944f1c308e5e30fee21b438eb6c)

Co-authored-by: Joseph Martinot-Lagarde <contrebasse@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
12 months ago[3.13] gh-126220: Fix crash on calls to `_lsprof.Profiler` methods with 0 args (backp...
Miss Islington (bot) [Fri, 1 Nov 2024 22:24:06 +0000 (23:24 +0100)] 
[3.13] gh-126220: Fix crash on calls to `_lsprof.Profiler` methods with 0 args (backportable) (GH-126271) (#126310)

gh-126220: Fix crash on calls to `_lsprof.Profiler` methods with 0 args (backportable) (GH-126271)
(cherry picked from commit 28b148fb32e4548b461137d18d1ab6d366395d36)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
12 months ago[3.13] gh-122767: document "new style" formatting for complexes (GH-122848) (#126128)
Miss Islington (bot) [Fri, 1 Nov 2024 19:29:29 +0000 (20:29 +0100)] 
[3.13] gh-122767: document "new style" formatting for complexes (GH-122848) (#126128)

gh-122767: document "new style" formatting for complexes (GH-122848)

(cherry picked from commit 0bbbe15f5688552236c48f2b6e320c5312720b8e)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] gh-126259: Fix "unclosed database" warning in sqlite3 doctest (GH-126260)...
Miss Islington (bot) [Fri, 1 Nov 2024 07:23:11 +0000 (08:23 +0100)] 
[3.13] gh-126259: Fix "unclosed database" warning in sqlite3 doctest (GH-126260) (#126265)

(cherry picked from commit 295262c8ecb085b4fea552bc6229af3551bbaf7a)

Co-authored-by: sobolevn <mail@sobolevn.me>
12 months ago[3.13] gh-126256: Update time.rst to use the same clock as instead of the same clock...
Miss Islington (bot) [Thu, 31 Oct 2024 21:50:20 +0000 (22:50 +0100)] 
[3.13] gh-126256: Update time.rst to use the same clock as instead of the same clock than (GH-126257) (#126258)

gh-126256: Update time.rst to use the same clock as instead of the same clock than (GH-126257)

Update time.rst to use `the same clock as` instead of `the same clock than`

The time documentation uses the same clock than time.monotonic instead of the same clock as time.monotonic, which is grammatically false. This PR fixes changes two instances of `the same clock than` to `the same clock as`.
(cherry picked from commit d0abd0b826cfa574d1515c6f8459c9901939388f)

Co-authored-by: Alperen Keleş <alpkeles99@gmail.com>
12 months ago[3.13] gh-126080: fix UAF on `task->task_context` in `task_call_step_soon` due to...
Miss Islington (bot) [Thu, 31 Oct 2024 19:32:47 +0000 (20:32 +0100)] 
[3.13] gh-126080: fix UAF on `task->task_context` in `task_call_step_soon` due to an evil `loop.__getattribute__` (GH-126120) (#126250)

gh-126080: fix UAF on `task->task_context` in `task_call_step_soon` due to an evil `loop.__getattribute__` (GH-126120)
(cherry picked from commit 0e8665554b2f1334e530fd6de5b3a4e908405419)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] GH-126205: Fix conversion of UNC paths to file URIs (GH-126208) (#126249)
Miss Islington (bot) [Thu, 31 Oct 2024 16:58:56 +0000 (17:58 +0100)] 
[3.13] GH-126205: Fix conversion of UNC paths to file URIs (GH-126208) (#126249)

GH-126205: Fix conversion of UNC paths to file URIs (GH-126208)

File URIs for Windows UNC paths should begin with two slashes, not four.
(cherry picked from commit 951cb2c369e8b8fb9f93662658391a53fd727787)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
12 months ago[3.13] gh-126240: handle `NULL` returned by `_Py_asdl_expr_seq_new` (GH-126241)...
Miss Islington (bot) [Thu, 31 Oct 2024 14:57:11 +0000 (15:57 +0100)] 
[3.13] gh-126240: handle `NULL` returned by  `_Py_asdl_expr_seq_new` (GH-126241) (#126243)

gh-126240: handle `NULL` returned by  `_Py_asdl_expr_seq_new` (GH-126241)

check return value of `_Py_asdl_expr_seq_new`
(cherry picked from commit 94639f6b7182c2e1a82f2f907b03b5b15202acfa)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] gh-126223: Propagate unicode errors in `_interpreters.create()` (GH-126224...
Miss Islington (bot) [Thu, 31 Oct 2024 14:46:36 +0000 (15:46 +0100)] 
[3.13] gh-126223: Propagate unicode errors in `_interpreters.create()` (GH-126224) (#126242)

gh-126223: Propagate unicode errors in `_interpreters.create()` (GH-126224)
(cherry picked from commit 01415213d72504eafc159721a8f55d57b374fd9c)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] gh-126083: Fix a reference leak in `asyncio.Task` when reinitializing with...
Miss Islington (bot) [Thu, 31 Oct 2024 08:14:00 +0000 (09:14 +0100)] 
[3.13] gh-126083: Fix a reference leak in `asyncio.Task` when reinitializing with new non-`None` context (GH-126103) (#126229)

gh-126083: Fix a reference leak in `asyncio.Task` when reinitializing with new non-`None` context (GH-126103)
(cherry picked from commit d07dcce6935364cab807e0df931ed09b088ade69)

Co-authored-by: Nico-Posada <102486290+Nico-Posada@users.noreply.github.com>
12 months ago[3.13] gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warning...
Miss Islington (bot) [Thu, 31 Oct 2024 01:32:04 +0000 (02:32 +0100)] 
[3.13] gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (GH-125823) (#126216)

gh-125818: Fix incorrect signature of argument `skip_file_prefixes` in warnings docs (GH-125823)

Change documentation
(cherry picked from commit d467d9246cbe0ce5dc149c4c74223bb8374ece73)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
12 months ago[3.13] gh-124872: Refine contextvars documentation (GH-124773) (#125233)
Richard Hansen [Wed, 30 Oct 2024 20:48:02 +0000 (16:48 -0400)] 
[3.13] gh-124872: Refine contextvars documentation (GH-124773) (#125233)

[3.13] gh-124872: Refine contextvars documentation

  * Add definitions for "context", "current context", and "context
    management protocol".
  * Update related definitions to be consistent with the new
    definitions.
  * Restructure the documentation for the `contextvars.Context` class
    to prepare for adding context manager support, and for consistency
    with the definitions.
  * Use `testcode` and `testoutput` to test the `Context.run` example.

(cherry-picked from commit 99400930ac1d4e5e10a5ae30f8202d8bc2661e39)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
12 months ago[3.13] Prefer "similar" over "equivalent" in tutorial (GH-125343) (GH-125372)
Miss Islington (bot) [Wed, 30 Oct 2024 20:33:20 +0000 (21:33 +0100)] 
[3.13] Prefer "similar" over "equivalent" in tutorial (GH-125343) (GH-125372)

Prefer "similar" over "equivalent" in tutorial (GH-125343)

In the datastructures tutorial doc, some operations are described as
"equivalent to" others. This has led to some user-confusion -- at
least in the Discourse forums -- about cases in which the operations
differ.

This change doesn't systematically eliminate the word "equivalent"
from the tutorial. It just substitutes "similar to" in several cases
in which "equivalent to" could mislead users into expecting exact
equivalence.
(cherry picked from commit 4a2282b0679bbf7b7fbd36aae1b1565145238961)

Co-authored-by: Stephen Rosen <sirosen@globus.org>
12 months agogh-125315: Avoid crashing in _wmimodule due to slow WMI calls on some Windows machine...
Miss Islington (bot) [Wed, 30 Oct 2024 20:26:14 +0000 (21:26 +0100)] 
gh-125315: Avoid crashing in _wmimodule due to slow WMI calls on some Windows machines (GH-126141)

(cherry picked from commit 60c415bd531392a239c23c754154a7944695ac99)

Co-authored-by: Steve Dower <steve.dower@python.org>
12 months ago[3.13] gh-60712: Include the "object" type in the lists of documented types (GH-10303...
Miss Islington (bot) [Wed, 30 Oct 2024 20:16:38 +0000 (21:16 +0100)] 
[3.13] gh-60712: Include the "object" type in the lists of documented types (GH-103036) (GH-126197)

gh-60712: Include the "object" type in the lists of documented types (GH-103036)

* add test for the predefined object's attributes

* Include the "object" type in the lists of documented types

* remove 'or' from augment tuple

* 📜🤖 Added by blurb_it.

* Add cross-reference to news

* Fix format for the function parameter

* Add space

* add reference for the 'object'

* add reference for NotImplemented

* Change ref:`string <textseq>`  as class:`str`

* remove hyphen from `newly-created`

* Update Doc/reference/datamodel.rst

'dictionaries' to 'dict'

* Update predefined attribute types in testPredefinedAttrs

* Change `universal type` as `top type`

* Don't mention about the top type

* Update the description of richcmpfuncs

* Update Doc/library/stdtypes.rst

* Revert: Hierarchy Section in Data Model Documentation

* Revert to original explanations of __new__ and __init__ methods in datamodel.rst for improved clarity.

* Update Doc/reference/datamodel.rst

* Remove blank line

* Use ref:`str <textseq>` instead of :class:`str

* Revert changes the description of Other Built-in Types in stdtypes.rst

* Update Doc/reference/datamodel.rst

---------

(cherry picked from commit 4f826214b30ad50365f45bf07e4a02f34f897ab5)

Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Éric <merwok@netwok.org>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
12 months ago[3.13] gh-126055: Add omitted command (in docs [os.walk]) for code to fulfill `shuti...
Miss Islington (bot) [Wed, 30 Oct 2024 20:16:00 +0000 (21:16 +0100)] 
[3.13] gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm (GH-126067) (GH-126199)

gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm (GH-126067)

* gh-126055:  Add omitted command (in docs [os.walk]) for code to fulfill `shutil.rmtree` algorithm.

Resolves GH-126055

* gh-126055:  Fix omitted code highlighting
(cherry picked from commit 597d814334742dde386a4d2979b9418aee6fcaba)

Co-authored-by: Victor Wheeler <vwheeler63@users.noreply.github.com>
12 months ago[3.13] Fix incorrect indentation in importlib.metadata.rst (GH-126189) (GH-126193)
Miss Islington (bot) [Wed, 30 Oct 2024 18:00:29 +0000 (19:00 +0100)] 
[3.13] Fix incorrect indentation in importlib.metadata.rst (GH-126189) (GH-126193)

Fix incorrect indentation in importlib.metadata.rst (GH-126189)
(cherry picked from commit 6f512c603465ff3e51e07cb7e1d36b4e5e88905d)

Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
12 months ago[3.13] gh-85583: Add f-string index in tutorial/inputoutput.rst (GH-21681) (GH-126191)
Miss Islington (bot) [Wed, 30 Oct 2024 17:35:10 +0000 (18:35 +0100)] 
[3.13] gh-85583: Add f-string index in tutorial/inputoutput.rst  (GH-21681) (GH-126191)

gh-85583: Add f-string index in tutorial/inputoutput.rst  (GH-21681)

* bpo-41411 fstring index in tutorial/inputoutput

To assist in searching for fstrings I have added an index

* Add newline

---------

(cherry picked from commit a3443c0e22a8623afe4c0518433b28afbc3a6df6)

Co-authored-by: amaajemyfren <32741226+amaajemyfren@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
12 months ago[3.13] gh-124612: Use ghcr.io/python/autoconf instead of public image (GH-124657...
Miss Islington (bot) [Wed, 30 Oct 2024 14:19:15 +0000 (15:19 +0100)] 
[3.13] gh-124612: Use ghcr.io/python/autoconf instead of public image (GH-124657) (#126183)

(cherry picked from commit b502573f7f800dbb2e401fa2a7a05eceac692c7a)

Co-authored-by: Donghee Na <donghee.na@python.org>
12 months ago[3.13] gh-126071: Improve formatting of the argparse documentation (GH-126073) (GH...
Serhiy Storchaka [Wed, 30 Oct 2024 09:21:38 +0000 (11:21 +0200)] 
[3.13] gh-126071: Improve formatting of the argparse documentation (GH-126073) (GH-126173)

* Use appropriate roles for ArgumentParser, Action, etc.
* Remove superfluous repeated links.
* Explicitly document signatures and add index entries for some methods
  and classes.
* Make it more clear that some parameters are keyword-only.
* Fix some minor errors.
(cherry picked from commit 2ab377a47c8290f8bf52c8ffb5d7fc4c45452611)

12 months ago[3.13] docs: restore an anchor to for/else (GH-126154) (#126159)
Miss Islington (bot) [Wed, 30 Oct 2024 08:16:33 +0000 (09:16 +0100)] 
[3.13] docs: restore an anchor to for/else (GH-126154) (#126159)

docs: restore an anchor to for/else (GH-126154)
(cherry picked from commit 2d9d10179ff3f13029bf4430e62c455a839987ca)

Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
12 months ago[3.13] gh-118633: Add warning regarding the unsafe usage of eval and exec (GH-118437...
Miss Islington (bot) [Wed, 30 Oct 2024 00:49:18 +0000 (01:49 +0100)] 
[3.13] gh-118633: Add warning regarding the unsafe usage of eval and exec (GH-118437) (#126161)

gh-118633: Add warning regarding the unsafe usage of eval and exec (GH-118437)

* Add warning regarding the unsafe usage of eval

* Add warning regarding the unsafe usage of exec

* Move warning under parameters table

* Use suggested shorter text

* Use suggested shorter text

* Improve wording as suggested

---------

(cherry picked from commit 00e5ec0d35193c1665e5c0cfe5ef82eed270d0f4)

Co-authored-by: Daniel Ruf <daniel@daniel-ruf.de>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
12 months ago[3.13] gh-126139: Improve error message location for future statement with unknown...
Miss Islington (bot) [Wed, 30 Oct 2024 00:36:06 +0000 (01:36 +0100)] 
[3.13] gh-126139: Improve error message location for future statement with unknown feature (GH-126140) (#126155)

gh-126139: Improve error message location for future statement with unknown feature (GH-126140)
(cherry picked from commit 224c370a3680132997f1e43d20a3b4ca95a060ab)

Co-authored-by: Brian Schubert <brianm.schubert@gmail.com>
12 months ago[3.13] gh-116938: Fix `dict.update` docstring and remove erraneous full stop from...
Miss Islington (bot) [Tue, 29 Oct 2024 23:27:33 +0000 (00:27 +0100)] 
[3.13] gh-116938: Fix `dict.update` docstring and remove erraneous full stop from `dict` documentation (GH-125421) (#126150)

gh-116938: Fix `dict.update` docstring and remove erraneous full stop from `dict` documentation (GH-125421)
(cherry picked from commit 5527c4051c0b58218ce69044f92b45f1d66ed43f)

Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.13] Doc: Note that pydoc uses and prefers ``MANPAGER`` (GH-125362) (#126152)
Miss Islington (bot) [Tue, 29 Oct 2024 23:23:18 +0000 (00:23 +0100)] 
[3.13] Doc: Note that pydoc uses and prefers ``MANPAGER`` (GH-125362) (#126152)

Doc: Note that pydoc uses and prefers ``MANPAGER`` (GH-125362)
(cherry picked from commit 0e45b1fd0ffbb165f580ecdfd5234c1d54389501)

Co-authored-by: Matthieu Ancellin <31126826+mancellin@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.13] GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993...
Miss Islington (bot) [Tue, 29 Oct 2024 21:08:17 +0000 (22:08 +0100)] 
[3.13] GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993) (#126144)

GH-125866: Improve tests for `pathname2url()` and `url2pathname()` (GH-125993)

Merge `URL2PathNameTests` and `PathName2URLTests` test cases (which test
only the Windows-specific implementations from `nturl2path`) into the main
`Pathname_Tests` test case for these functions.

Copy/port some test cases for `pathlib.Path.as_uri()` and `from_uri()`.
(cherry picked from commit 6742f14dfd3fa8ba8a245efa21a4f723160d93d4)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
12 months agogh-126084: Fix venvwlauncher.exe to run pythonw.exe (GH-126088)
Miss Islington (bot) [Tue, 29 Oct 2024 20:20:05 +0000 (21:20 +0100)] 
gh-126084: Fix venvwlauncher.exe to run pythonw.exe (GH-126088)

(cherry picked from commit 802d405ff1233a48004a7c9b302baa76291514d1)

Co-authored-by: Christian Ullrich <chris@chrullrich.net>
12 months ago[3.13] Add lightweight comments to conf.py and update docs readme (GH-126100) (#126134)
Miss Islington (bot) [Tue, 29 Oct 2024 19:21:41 +0000 (20:21 +0100)] 
[3.13] Add lightweight comments to conf.py and update docs readme (GH-126100) (#126134)

Add lightweight comments to conf.py and update docs readme (GH-126100)

* Update contributing contact info in readme

* Add lightweight comments to improve docs workflow understanding

* Apply code review suggestions from @hugovk

* Add code review suggestion from @AA-Turner

* Update Doc/conf.py

* Update Doc/conf.py

* Update Doc/conf.py

---------

(cherry picked from commit 9effa0ff06047f3d957bf37267742a98106581ff)

Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.13] gh-126105: Fix crash in `ast` module, when `._fields` is deleted (GH-126115...
Miss Islington (bot) [Tue, 29 Oct 2024 16:07:32 +0000 (17:07 +0100)] 
[3.13] gh-126105: Fix crash in `ast` module, when `._fields` is deleted (GH-126115) (#126130)

gh-126105: Fix crash in `ast` module, when `._fields` is deleted (GH-126115)

Previously, if the `ast.AST._fields` attribute was deleted, attempts to create a new `as`t node would crash due to the assumption that `_fields` always had a non-NULL value. Now it has been fixed by adding an extra check to ensure that `_fields` does not have a NULL value (this can happen when you manually remove `_fields` attribute).
(cherry picked from commit b2eaa75b176e07730215d76d8dce4d63fb493391)

Co-authored-by: sobolevn <mail@sobolevn.me>
12 months ago[3.13] gh-126106: Fix `NULL` possible derefrence in `Modules/_ssl.c` (GH-126111)...
Miss Islington (bot) [Tue, 29 Oct 2024 09:29:10 +0000 (10:29 +0100)] 
[3.13] gh-126106: Fix `NULL` possible derefrence in `Modules/_ssl.c` (GH-126111) (#126116)

gh-126106: Fix `NULL` possible derefrence in `Modules/_ssl.c` (GH-126111)
(cherry picked from commit a64a1c920660b0c1e4dd5a9573004cd527e15184)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] Align functools.reduce() docstring with PEP-257 (GH-126045) (#126113)
Miss Islington (bot) [Tue, 29 Oct 2024 09:13:35 +0000 (10:13 +0100)] 
[3.13] Align functools.reduce() docstring with PEP-257 (GH-126045) (#126113)

Yak-shave in preparation for Argument Clinic adaption in gh-125999.

(cherry picked from commit 9b14083497f50213f908c1359eeaf47c97161347)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
12 months ago[3.13] gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066...
Miss Islington (bot) [Tue, 29 Oct 2024 08:11:47 +0000 (09:11 +0100)] 
[3.13] gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066) (#126109)

gh-126014: Ignore `__pycache__`-only folders in makefile tests (GH-126066)
(cherry picked from commit aeafaf4cda5bfce44bb054b4c530696901646abe)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
12 months ago[3.13] gh-89762: Document strftime %G, %V, and %u format specifiers (GH-124572) ...
Miss Islington (bot) [Mon, 28 Oct 2024 21:59:41 +0000 (22:59 +0100)] 
[3.13] gh-89762: Document strftime %G, %V, and %u format specifiers (GH-124572) (#126094)

(cherry picked from commit 85799f1ffd5f285ef93a608b0aaf6acbb464ff9d)

Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
12 months ago[3.13] gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989) (GH...
Miss Islington (bot) [Mon, 28 Oct 2024 13:20:58 +0000 (14:20 +0100)] 
[3.13] gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989) (GH-125979)

gh-120313: amend documentation regarding `ctypes._CFuncPtr` (GH-120989)

(cherry picked from commit 417c130ba55ca29e132808a0a500329f73b6ec41)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] gh-125783: Add tests to prevent regressions with the combination of `ctypes...
Miss Islington (bot) [Mon, 28 Oct 2024 12:49:45 +0000 (13:49 +0100)] 
[3.13] gh-125783: Add tests to prevent regressions with the combination of `ctypes` and metaclasses. (GH-125881) (#125987)

gh-125783: Add tests to prevent regressions with the combination of `ctypes` and metaclasses. (GH-125881)
(cherry picked from commit 13844094609cf8265a2eed023e33c7002f3f530d)

Co-authored-by: Jun Komoda <45822440+junkmd@users.noreply.github.com>
12 months ago[3.13] gh-125703: Correctly honour tracemalloc hooks on more PyDECREF specialized...
Pablo Galindo Salgado [Mon, 28 Oct 2024 11:50:36 +0000 (11:50 +0000)] 
[3.13] gh-125703: Correctly honour tracemalloc hooks on more PyDECREF specialized paths (GH-125712) (#125791)

(cherry picked from commit 3d1df3d84e5c75a52b6f1379cd7f2809fc50befa)

12 months ago[3.13] gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages (GH...
Miss Islington (bot) [Sun, 27 Oct 2024 22:19:37 +0000 (23:19 +0100)] 
[3.13] gh-126035: add missing whitespace to *Py_EnterRecursiveCall() messages (GH-126036) (#126058)

(cherry picked from commit 19e93e2e269889ecb3c4c039091abff489f247c2)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] gh-124295: Add translation tests for argparse (GH-124803) (GH-126046)
Serhiy Storchaka [Sun, 27 Oct 2024 18:35:30 +0000 (20:35 +0200)] 
[3.13] gh-124295: Add translation tests for argparse (GH-124803) (GH-126046)

(cherry picked from commit 0922a4ae0d2803e3a4e9f3d2ccd217364cfd700e)

Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
12 months ago[3.13] gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback...
Miss Islington (bot) [Sun, 27 Oct 2024 17:36:10 +0000 (18:36 +0100)] 
[3.13] gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback's `__eq__` in asyncio (GH-125967) (#126047)

gh-125966: fix use-after-free on `fut->fut_callback0` due to an evil callback's `__eq__` in asyncio (GH-125967)
(cherry picked from commit ed5059eeb1aa50b481957307db5a34b937497382)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] gh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an...
Miss Islington (bot) [Sun, 27 Oct 2024 15:28:02 +0000 (16:28 +0100)] 
[3.13] gh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an evil `loop.__getattribute__` (GH-126003) (#126043)

gh-125984: fix use-after-free on `fut->fut_{callback,context}0` due to an evil `loop.__getattribute__` (GH-126003)
(cherry picked from commit f819d4301d7c75f02be1187fda017f0e7b608816)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
12 months ago[3.13] gh-126018: Avoid aborting due to unnecessary assert in `sys.audit` (GH-126020...
Miss Islington (bot) [Sun, 27 Oct 2024 15:07:33 +0000 (16:07 +0100)] 
[3.13] gh-126018: Avoid aborting due to unnecessary assert in `sys.audit` (GH-126020) (#126042)

(cherry picked from commit 80eec52fc813bc7d20478da3114ec6ffd73e7c31)

Co-authored-by: devdanzin <74280297+devdanzin@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
12 months ago[3.13] gh-125593: Use colors to highlight error locations in tracebacks from exceptio...
Miss Islington (bot) [Sun, 27 Oct 2024 01:23:00 +0000 (02:23 +0100)] 
[3.13] gh-125593: Use colors to highlight error locations in tracebacks from exception group (GH-125681) (#126021)

gh-125593: Use colors to highlight error locations in tracebacks from exception group (GH-125681)
(cherry picked from commit 51b012b2a8093c92ef2c06884f9719657f9b17f7)

Co-authored-by: Bogdan Romanyuk <65823030+wrongnull@users.noreply.github.com>
12 months ago[3.13] gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870...
Miss Islington (bot) [Sat, 26 Oct 2024 18:37:06 +0000 (20:37 +0200)] 
[3.13] gh-84545: Clarify the 'extend' action documentation in argparse (GH-125870) (GH-125964)

(cherry picked from commit da8673da362a2135cd621ac619d3aced6bb55100)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is...
Miss Islington (bot) [Sat, 26 Oct 2024 16:31:47 +0000 (18:31 +0200)] 
[3.13] gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is thrown (GH-118960) (#125931)

gh-118950: Fix SSLProtocol.connection_lost not being called when OSError is thrown (GH-118960)

(cherry picked from commit 3f24bde0b6689b8f05872a8118a97908b5a94659)

Co-authored-by: Javad Shafique <javadshafique@hotmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
12 months ago[3.13] gh-125698: Autoconf: Sync EXEEXT and ac_exeext (GH-125995) (#126006)
Miss Islington (bot) [Sat, 26 Oct 2024 15:36:03 +0000 (17:36 +0200)] 
[3.13] gh-125698: Autoconf: Sync EXEEXT and ac_exeext (GH-125995) (#126006)

(cherry picked from commit 8b7cdc5e0c3ee9903d41a2bfc494148db32dc379)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
12 months ago[3.13] Fix a typo in ``Doc/tutorial/errors.rst`` exception output (GH-126001) (#126009)
Miss Islington (bot) [Sat, 26 Oct 2024 15:32:37 +0000 (17:32 +0200)] 
[3.13] Fix a typo in ``Doc/tutorial/errors.rst`` exception output (GH-126001) (#126009)

Fix a typo in ``Doc/tutorial/errors.rst`` exception output (GH-126001)
(cherry picked from commit a78d5b32429e2399178ac838e0e62b2bd62c0af9)

Co-authored-by: Bogdana Vereha <bogdanap@github.com>
12 months ago[3.13] gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon...
Miss Islington (bot) [Fri, 25 Oct 2024 18:43:07 +0000 (20:43 +0200)] 
[3.13] gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon` (GH-125970) (#125991)

gh-125969: fix OOB in `future_schedule_callbacks` due to an evil `call_soon` (GH-125970)
(cherry picked from commit c5b99f5c2c5347d66b9da362773969c531fb6c85)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
12 months ago[3.13] gh-125608: Trigger dictionary watchers when inline values change (GH-125611...
Miss Islington (bot) [Fri, 25 Oct 2024 14:35:04 +0000 (16:35 +0200)] 
[3.13] gh-125608: Trigger dictionary watchers when inline values change (GH-125611) (GH-125982)

Dictionary watchers on an object's attributes dictionary
(`object.__dict__`) were not triggered when the managed dictionary used
the object's inline values.
(cherry picked from commit 5989eb74463c26780632f17f221d6bf4c9372a01)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (#124718)
Petr Viktorin [Fri, 25 Oct 2024 13:34:20 +0000 (15:34 +0200)] 
[3.13] gh-121277: Allow `.. versionadded:: next` in docs (GH-121278) (#124718)

* gh-121277: Allow `.. versionadded:: next` in docs (GH-121278)

Make `versionchanged:: next`` expand to current (unreleased) version.

When a new CPython release is cut, the release manager will replace
all such occurences of "next" with the just-released version.
(See the issue for release-tools and devguide PRs.)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 7d24ea9db3e8fdca52058629c9ba577aba3d8e5c)

* gh-121277: Raise nice error on `next` as second argument to deprecated-removed (GH-124623)

(cherry-picked from e349f73a5ad2856b0a7cbe4aef7cc081c7aed777)

12 months ago[3.13] GH-125789: fix `fut._callbacks` to always return a copy of callbacks (#125922...
Kumar Aditya [Fri, 25 Oct 2024 13:19:31 +0000 (18:49 +0530)] 
[3.13] GH-125789: fix `fut._callbacks` to always return a copy of callbacks (#125922) (#125976)

GH-125789: fix `fut._callbacks` to always return a copy of callbacks (#125922)

Fix `asyncio.Future._callbacks` to always return a copy of the internal list of callbacks to avoid mutation from user code affecting the internal state.

(cherry picked from commit cae853e3b44cd5cb033b904e163c490dd28bc30a)

12 months ago[3.13] gh-123930: Correct test of attribute failure to account for iOS (GH-125959...
Miss Islington (bot) [Fri, 25 Oct 2024 07:42:20 +0000 (09:42 +0200)] 
[3.13] gh-123930: Correct test of attribute failure to account for iOS (GH-125959) (#125960)

gh-123930: Correct test of attribute failure to account for iOS (GH-125959)

Update a test of importing attributes from binary modules to account for iOS conditions.
(cherry picked from commit 75401febc91a449cc4f4391d663e9a96ce91bb6c)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
12 months ago[3.13] gh-125259: Fix error notes removal in enum initialization (GH-125647) (GH...
Miss Islington (bot) [Fri, 25 Oct 2024 03:24:23 +0000 (05:24 +0200)] 
[3.13] gh-125259: Fix error notes removal in enum initialization (GH-125647) (GH-125858)

gh-125259: Fix error notes removal in enum initialization (GH-125647)
(cherry picked from commit 34653bba644aa5481613f398153757d7357e39ea)

Co-authored-by: Mario Šaško <mariosasko777@gmail.com>
12 months ago[3.13] gh-125942: Android: set stdout to `errors="backslashreplace"` (GH-125943)...
Miss Islington (bot) [Fri, 25 Oct 2024 00:59:23 +0000 (02:59 +0200)] 
[3.13] gh-125942: Android: set stdout to `errors="backslashreplace"` (GH-125943) (#125950)

gh-125942: Android: set stdout to `errors="backslashreplace"` (GH-125943)

Android stdout/err streams now use `backslashreplace` encoding to ensure readability of the Android log.
(cherry picked from commit b08570c90eb9fa2e2ee4429909b14240b7a427d4)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
12 months ago[3.13] gh-125940: Android: support 16 KB pages (GH-125941) (#125948)
Miss Islington (bot) [Fri, 25 Oct 2024 00:37:38 +0000 (02:37 +0200)] 
[3.13] gh-125940: Android: support 16 KB pages (GH-125941) (#125948)

gh-125940: Android: support 16 KB pages (GH-125941)

Modify Android build tooling to use 16kB pages.
(cherry picked from commit e68d4b08ff13a06a2c2877f63bf856e6bf3c2e77)

Co-authored-by: Malcolm Smith <smith@chaquo.com>
12 months ago[3.13] gh-125245: Fix race condition when importing `collections.abc` (GH-125415...
Miss Islington (bot) [Thu, 24 Oct 2024 22:38:45 +0000 (00:38 +0200)] 
[3.13] gh-125245: Fix race condition when importing `collections.abc` (GH-125415) (GH-125944)

If multiple threads concurrently imported `collections.abc`, some of the
threads might incorrectly see the "shim" `Lib/collections/abc.py` module
instead of the correct `Lib/_collections_abc.py` module.  This affected
both the free threading build and the default GIL-enabled build.
(cherry picked from commit fed501d7247053ce46a2ba512bf0e4bb4f483be6)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-125933: Add ARIA labels to select elements in the version switcher (GH...
Miss Islington (bot) [Thu, 24 Oct 2024 20:57:52 +0000 (22:57 +0200)] 
[3.13] gh-125933: Add ARIA labels to select elements in the version switcher (GH-125934) (#125938)

gh-125933: Add ARIA labels to select elements in the version switcher (GH-125934)
(cherry picked from commit 1306f33c84b2745aa8af5e3e8f680aa80b836c0e)

Co-authored-by: Kerim Kabirov <the.privat33r+gh@pm.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
12 months ago[3.13] gh-123930: Better error for "from imports" when script shadows module (GH...
Shantanu [Thu, 24 Oct 2024 19:37:31 +0000 (12:37 -0700)] 
[3.13] gh-123930: Better error for "from imports" when script shadows module (GH-123929) (#125937)

gh-123930: Better error for "from imports" when script shadows module (#123929)

(cherry picked from commit 500f5338a8fe13719478589333fcd296e8e8eb02)

12 months ago[3.13] gh-125268: Use static string for "1e309" in AST (GH-125272) (GH-125280)
Sam Gross [Thu, 24 Oct 2024 17:59:23 +0000 (13:59 -0400)] 
[3.13] gh-125268: Use static string for "1e309" in AST (GH-125272) (GH-125280)

When formatting the AST as a string, infinite values are replaced by
1e309, which evaluates to infinity. The initialization of this string
replacement was not thread-safe in the free threading build.
(cherry picked from commit 427dcf24de4e06d239745d74d08c4b2e541dca5a)

12 months ago[3.13] gh-125909: Avoid a redirect when linking to the devguide (GH-125826) (#125929)
Miss Islington (bot) [Thu, 24 Oct 2024 16:47:01 +0000 (18:47 +0200)] 
[3.13] gh-125909: Avoid a redirect when linking to the devguide (GH-125826) (#125929)

(cherry picked from commit 5003ad5c5ea508f0dde1b374cd8bc6a481ad5c5d)

Co-authored-by: partev <petrosyan@gmail.com>
12 months ago[3.13] gh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (GH-125896) (GH-125925)
Miss Islington (bot) [Thu, 24 Oct 2024 16:27:30 +0000 (18:27 +0200)] 
[3.13] gh-125842: Fix `sys.exit(0xffff_ffff)` on Windows (GH-125896) (GH-125925)

On Windows, `long` is a signed 32-bit integer so it can't represent
`0xffff_ffff` without overflow. Windows exit codes are unsigned 32-bit
integers, so if a child process exits with `-1`, it will be represented
as `0xffff_ffff`.

Also fix a number of other possible cases where `_Py_HandleSystemExit`
could return with an exception set, leading to a `SystemError` (or
fatal error in debug builds) later on during shutdown.
(cherry picked from commit ad6110a93ffa82cae71af6c78692de065d3871b5)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-125859: Fix crash when `gc.get_objects` is called during GC (GH-125882...
Miss Islington (bot) [Thu, 24 Oct 2024 14:08:15 +0000 (16:08 +0200)] 
[3.13] gh-125859: Fix crash when `gc.get_objects` is called during GC (GH-125882) (GH-125921)

This fixes a crash when `gc.get_objects()` or `gc.get_referrers()` is
called during a GC in the free threading build.

Switch to `_PyObjectStack` to avoid corrupting the `struct worklist`
linked list maintained by the GC. Also, don't return objects that are frozen
(`gc.freeze()`) or in the process of being collected to more closely match
the behavior of the default build.
(cherry picked from commit e545ead66ce725aae6fb0ad5d733abe806c19750)

Co-authored-by: Sam Gross <colesbury@gmail.com>
12 months ago[3.13] gh-125884: Support breakpoint on functions with annotations (G… (#125902)
Tian Gao [Wed, 23 Oct 2024 22:37:24 +0000 (15:37 -0700)] 
[3.13] gh-125884: Support breakpoint on functions with annotations (G… (#125902)

[3.13] gh-125884: Support breakpoint on functions with annotations (GH-125892)
(cherry picked from commit 8f2c0f7a03b71485b5635cb47c000e4e8ace8800)

12 months ago[3.13] gh-124858: fix happy eyeballs refcyles (GH-124859) (#124912)
Miss Islington (bot) [Wed, 23 Oct 2024 19:35:56 +0000 (21:35 +0200)] 
[3.13] gh-124858: fix happy eyeballs refcyles (GH-124859) (#124912)

gh-124858: fix happy eyeballs refcyles (GH-124859)
(cherry picked from commit c066bf553577d1000e208eb078d9e758c3e41186)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
12 months ago[3.13] gh-123978: Remove broken time.thread_time() on NetBSD (GH-124116) (GH-124425)
Miss Islington (bot) [Wed, 23 Oct 2024 16:39:34 +0000 (18:39 +0200)] 
[3.13] gh-123978: Remove broken time.thread_time() on NetBSD (GH-124116) (GH-124425)

(cherry picked from commit e670a113b5e1fcc3ce3bb9b5b4b1f126264ae21b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (GH-125178...
Jelle Zijlstra [Wed, 23 Oct 2024 13:45:28 +0000 (06:45 -0700)] 
[3.13] gh-125038: Fix crash after genexpr.gi_frame.f_locals manipulations (GH-125178) (#125846)

(cherry picked from commit 079875e39589eb0628b5883f7ffa387e7476ec06)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
12 months ago[3.13] gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values...
Miss Islington (bot) [Tue, 22 Oct 2024 18:29:42 +0000 (20:29 +0200)] 
[3.13] gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values (GH-125735) (GH-125851)

gh-125710: [Enum] fix hashable<->nonhashable comparisons for member values (GH-125735)
(cherry picked from commit aaed91cabcedc16c089c4b1c9abb1114659a83d3)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
12 months ago[3.13] gh-124651: Quote template strings in `venv` activation scripts (GH-124712...
Miss Islington (bot) [Tue, 22 Oct 2024 15:49:20 +0000 (17:49 +0200)] 
[3.13] gh-124651: Quote template strings in `venv` activation scripts (GH-124712) (GH-125813)

(cherry picked from commit d48cc82ed25e26b02eb97c6263d95dcaa1e9111b)

12 months ago[3.13] Doc: Show object descriptions in the table of contents (GH-125757) (#125840)
Miss Islington (bot) [Tue, 22 Oct 2024 13:13:35 +0000 (15:13 +0200)] 
[3.13] Doc: Show object descriptions in the table of contents (GH-125757) (#125840)

(cherry picked from commit 91ddde4af0c3031c84a967bcf59f6fb4f8a48c0d)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
12 months ago[3.13] gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356) (GH-125834)
Miss Islington (bot) [Tue, 22 Oct 2024 12:58:05 +0000 (14:58 +0200)] 
[3.13] gh-125355: Rewrite parse_intermixed_args() in argparse (GH-125356) (GH-125834)

* The parser no longer changes temporarily during parsing.
* Default values are not processed twice.
* Required mutually exclusive groups containing positional arguments are
  now supported.
* The missing arguments report now includes the names of all required
  optional and positional arguments.
* Unknown options can be intermixed with positional arguments in
  parse_known_intermixed_args().
(cherry picked from commit 759a54d28ffe7eac8c23917f5d3dfad8309856be)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-125811: Remove DeprecationWarnings in test_peg_generator (GH-125812) (...
Miss Islington (bot) [Tue, 22 Oct 2024 09:06:26 +0000 (11:06 +0200)] 
[3.13] gh-125811: Remove DeprecationWarnings in test_peg_generator (GH-125812) (#125831)

gh-125811: Remove DeprecationWarnings in test_peg_generator (GH-125812)
(cherry picked from commit 4efe64aa56e7a9a96b94c0ae0201db8d402a5f53)

Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
12 months ago[3.13] gh-125716: Use a Global Mutex When Initializing Global State For the _interpqu...
Miss Islington (bot) [Mon, 21 Oct 2024 22:16:32 +0000 (00:16 +0200)] 
[3.13] gh-125716: Use a Global Mutex When Initializing Global State For the _interpqueues Module (gh-125817)

This includes a drive-by cleanup in _queues_init() and _queues_fini().

This change also applies to the _interpchannels module.

(cherry picked from commit 4848b0b92ce2737cea08fa3b322fd0f0a671bb07, AKA gh-125803)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
12 months ago[3.13] gh-125716: Raise an Exception If _globals_init() Fails In the _interpqueues...
Miss Islington (bot) [Mon, 21 Oct 2024 20:05:06 +0000 (22:05 +0200)] 
[3.13] gh-125716: Raise an Exception If _globals_init() Fails In the _interpqueues Module (gh-125808)

The fix applies to the _interpchannels module as well.

I've also included a drive-by typo fix for _interpqueues.

(cherry picked from commit 44f841f01af0fb038e142a07f15eda1ecdd5b08a, AKA gh-125802)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
12 months ago[3.13] gh-53203: Fix test_strptime on Solaris (GH-125785) (GH-125806)
Miss Islington (bot) [Mon, 21 Oct 2024 19:42:18 +0000 (21:42 +0200)] 
[3.13] gh-53203: Fix test_strptime on Solaris (GH-125785) (GH-125806)

Use fixed timezone.
Skip roundtrip tests on locales with 2-digit year.
(cherry picked from commit 9dde4638e44639d45bd7d72e70a8d410995a585a)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string again...
Miss Islington (bot) [Mon, 21 Oct 2024 19:30:23 +0000 (21:30 +0200)] 
[3.13] gh-124969: Make locale.nl_langinfo(locale.ALT_DIGITS) returning a string again (GH-125774) (GH-125804)

This is a follow up of GH-124974. Only Glibc needed a fix.
Now the returned value is a string consisting of semicolon-separated
symbols on all Posix platforms.
(cherry picked from commit dcc4fb2c9068f60353f0c0978948b7681f7745e6)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
12 months ago[3.13] gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals...
Miss Islington (bot) [Mon, 21 Oct 2024 17:06:27 +0000 (19:06 +0200)] 
[3.13] gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals (GH-125616) (#125797)

gh-125590: Allow FrameLocalsProxy to delete and pop keys from extra locals (GH-125616)
(cherry picked from commit 5b7a872b26a9ba6c93d7c2109559a82d1c1612de)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
12 months ago[3.13] gh-125766: Docs: minor rewording of installation on Linux section (GH-125793)
Miss Islington (bot) [Mon, 21 Oct 2024 16:56:01 +0000 (18:56 +0200)] 
[3.13] gh-125766: Docs: minor rewording of installation on Linux section (GH-125793)

(cherry picked from commit d67bf2d89ab57f94608d7d2cf949dc4a8749485d)

Co-authored-by: partev <petrosyan@gmail.com>