]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
15 months ago[3.13] gh-59022: Added tests for `pkgutil.extend_path` (GH-121673) (GH-121951)
Miss Islington (bot) [Fri, 19 Jul 2024 14:35:51 +0000 (16:35 +0200)] 
[3.13] gh-59022: Added tests for `pkgutil.extend_path` (GH-121673) (GH-121951)

This adds tests for the documented behaviour of `pkgutil.extend_path`
regarding different argument types as well as for `*.pkg` files.
(cherry picked from commit 8f2532168b4630e413a42ccb5e458708808702ea)

Co-authored-by: Andreas Stocker <andreas@stocker.co.it>
15 months ago[3.13] gh-121160: Note that readline libraries using different history formats. ...
Miss Islington (bot) [Fri, 19 Jul 2024 14:09:41 +0000 (16:09 +0200)] 
[3.13] gh-121160: Note that readline libraries using different history formats. (GH-121327) (GH-122030)

This is not something we can do too much about, without help from the
underlying libraries.
(cherry picked from commit 709db44255eb5d73fc22a1341dd0253e71ddfda9)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
15 months ago[3.13] GH-121970: Rewrite the C-API annotations extension (#121985) (#122027)
Adam Turner [Fri, 19 Jul 2024 13:03:52 +0000 (14:03 +0100)] 
[3.13] GH-121970: Rewrite the C-API annotations extension (#121985) (#122027)

GH-121970: Rewrite the C-API annotations extension (#121985)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
(cherry picked from commit 22c9d9c1fcc3bb6186524330b169eda6df450f1b)

15 months ago[3.13] GH-121970: Use Ruff to check and format the docs tools (GH-122018) (#122023)
Miss Islington (bot) [Fri, 19 Jul 2024 12:30:54 +0000 (14:30 +0200)] 
[3.13] GH-121970: Use Ruff to check and format the docs tools (GH-122018) (#122023)

GH-121970: Use Ruff to check and format the docs tools (GH-122018)
(cherry picked from commit 40855f3ab80ced9950c725b710f507c0e903b70a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@gmail.com>
15 months ago[3.13] GH-121970: Combine custom Pygments lexers into a package (GH-121976) (#122021)
Miss Islington (bot) [Fri, 19 Jul 2024 12:11:33 +0000 (14:11 +0200)] 
[3.13] GH-121970: Combine custom Pygments lexers into a package (GH-121976) (#122021)

GH-121970: Combine custom Pygments lexers into a package (GH-121976)
(cherry picked from commit 7431c3799efbd06ed03ee70b64420f45e83b3667)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
15 months ago[3.13] gh-121657: Additional `yield from` error test using lambda (GH-121722) (GH...
Miss Islington (bot) [Fri, 19 Jul 2024 11:50:34 +0000 (13:50 +0200)] 
[3.13] gh-121657: Additional `yield from` error test using lambda (GH-121722) (GH-121961)

(cherry picked from commit 1056f2bc208bdfe562c79d2a5098723c50ae9c23)

Co-authored-by: Gregor <36135323+gege-hoho@users.noreply.github.com>
15 months ago[3.13] GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (GH...
Miss Islington (bot) [Fri, 19 Jul 2024 10:56:37 +0000 (12:56 +0200)] 
[3.13] GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (GH-121971) (#122019)

GH-121970: Make ``DeprecatedRemoved`` a subclass of ``VersionChange`` (GH-121971)
(cherry picked from commit 898e90c3bef77174f22193b114483b9cd196921a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months ago[3.13] GH-121970: Improve the glossary preview in HTML search (GH-121991) (#122015)
Miss Islington (bot) [Fri, 19 Jul 2024 09:34:11 +0000 (11:34 +0200)] 
[3.13] GH-121970: Improve the glossary preview in HTML search (GH-121991) (#122015)

GH-121970: Improve the glossary preview in HTML search (GH-121991)
(cherry picked from commit adf0b94d1cdd74340c8bc031f7464d0a33200f08)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months ago[3.13] gh-121905: Consistently use "floating-point" instead of "floating point" ...
Serhiy Storchaka [Fri, 19 Jul 2024 09:13:08 +0000 (12:13 +0300)] 
[3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012)

(cherry picked from commit 1a0c7b9ba48a2dffb70bb0c7327abae1d3e87356)

15 months ago[3.13] Docs: Upgrade Sphinx to 7.4 (GH-121987) (#122010)
Miss Islington (bot) [Fri, 19 Jul 2024 08:15:18 +0000 (10:15 +0200)] 
[3.13] Docs: Upgrade Sphinx to 7.4 (GH-121987) (#122010)

Docs: Upgrade Sphinx to 7.4 (GH-121987)
(cherry picked from commit 420d94312824825a18fa1fd9a36773626a54d97a)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months ago[3.13] gh-65453: Docs - clarify AttributeError behaviour on PropertyMock (GH-121666...
Miss Islington (bot) [Fri, 19 Jul 2024 08:03:43 +0000 (10:03 +0200)] 
[3.13] gh-65453: Docs - clarify AttributeError behaviour on PropertyMock (GH-121666) (GH-121968)

Fixed at EuroPython 24 sprints.
(cherry picked from commit 94e6644584d9cb08a4edcd1027e288386184816b)

Co-authored-by: Vlastimil Zíma <ziima@users.noreply.github.com>
15 months ago[3.13] GH-117928: Bump the minimum Sphinx version to 6.2.1 (GH-121986) (#121994)
Miss Islington (bot) [Fri, 19 Jul 2024 07:52:42 +0000 (09:52 +0200)] 
[3.13] GH-117928: Bump the minimum Sphinx version to 6.2.1 (GH-121986) (#121994)

GH-117928: Bump the minimum Sphinx version to 6.2.1 (GH-121986)
(cherry picked from commit 7dd52b63cef3ff60868dea510ef7a9adcc6611cc)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months ago[3.13] GH-121970: Use ``SphinxDirective`` instead of ``Directive`` (GH-121972) (...
Miss Islington (bot) [Fri, 19 Jul 2024 07:51:43 +0000 (09:51 +0200)] 
[3.13] GH-121970: Use ``SphinxDirective`` instead of ``Directive`` (GH-121972) (#122008)

GH-121970: Use ``SphinxDirective`` instead of ``Directive`` (GH-121972)
(cherry picked from commit ac39151a09fc9857e64d7b8f7eff926ec0ba6c0b)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
15 months ago[3.13] Docs: Fix typo in description of ``INTRINSIC_ASYNC_GEN_WRAP`` (GH-122004)...
Miss Islington (bot) [Fri, 19 Jul 2024 07:46:58 +0000 (09:46 +0200)] 
[3.13] Docs: Fix typo in description of ``INTRINSIC_ASYNC_GEN_WRAP`` (GH-122004) (#122006)

Docs: Fix typo in description of ``INTRINSIC_ASYNC_GEN_WRAP`` (GH-122004)
(cherry picked from commit 98e5bdef0ef59695371ec8a8486bb55ccf2b0638)

Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
15 months ago[3.13] gh-120289: Add external timer in traverse of _lsprof.Profiler (GH-121998)...
Miss Islington (bot) [Fri, 19 Jul 2024 04:10:11 +0000 (06:10 +0200)] 
[3.13] gh-120289: Add external timer in traverse of _lsprof.Profiler (GH-121998) (#122000)

gh-120289: Add external timer in traverse of _lsprof.Profiler (GH-121998)
(cherry picked from commit eaf094c09b5b1c33435c60ef49b1cec78c32573c)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
15 months ago[3.13] gh-120289: Disallow disable() and clear() in external timer to prevent use...
Miss Islington (bot) [Thu, 18 Jul 2024 20:26:47 +0000 (22:26 +0200)] 
[3.13] gh-120289: Disallow disable() and clear() in external timer to prevent use-after-free (GH-120297) (#121984)

gh-120289: Disallow disable() and clear() in external timer to prevent use-after-free (GH-120297)
(cherry picked from commit 1ab17782832bb1b6baa915627aead3e3516a0894)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
15 months ago[3.13] gh-121946: Temporarily switch to llvm-17 in TSan CI (GH-121975) (#121981)
Miss Islington (bot) [Thu, 18 Jul 2024 17:55:22 +0000 (19:55 +0200)] 
[3.13] gh-121946: Temporarily switch to llvm-17 in TSan CI (GH-121975) (#121981)

The Ubuntu package for llvm-18 is broken
(cherry picked from commit 12c1afa9d153fbdf78c970054c08c755f504c5e9)

Co-authored-by: Sam Gross <colesbury@gmail.com>
15 months ago[3.13] gh-118934: Make PyEval_GetLocals return borrowed reference (GH-119769) (#121869)
Miss Islington (bot) [Thu, 18 Jul 2024 15:38:28 +0000 (17:38 +0200)] 
[3.13] gh-118934: Make PyEval_GetLocals return borrowed reference (GH-119769) (#121869)

gh-118934: Make PyEval_GetLocals return borrowed reference (GH-119769)
(cherry picked from commit e65cb4c6f01a687f451ad9db1600525e1c5832c4)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
15 months agoPost 3.13.0b4
Thomas Wouters [Thu, 18 Jul 2024 13:53:44 +0000 (15:53 +0200)] 
Post 3.13.0b4

15 months agoPython 3.13.0b4 v3.13.0b4
Thomas Wouters [Thu, 18 Jul 2024 09:35:42 +0000 (11:35 +0200)] 
Python 3.13.0b4

15 months ago[3.13] gh-121621: Move asyncio_running_loop to private struct (GH-121939) (#121943)
Miss Islington (bot) [Thu, 18 Jul 2024 08:52:39 +0000 (10:52 +0200)] 
[3.13] gh-121621: Move asyncio_running_loop to private struct (GH-121939) (#121943)

gh-121621: Move asyncio_running_loop to private struct (GH-121939)

This avoids changing the ABI and keeps the field in the private struct.
(cherry picked from commit 81fd625b5c30cc6f417c93bad404923676ad8ca3)

Co-authored-by: Sam Gross <colesbury@gmail.com>
15 months ago[3.13] Add note about PYTHON_JIT environment variable to JIT README (GH-121942)
Miss Islington (bot) [Wed, 17 Jul 2024 22:18:39 +0000 (00:18 +0200)] 
[3.13] Add note about PYTHON_JIT environment variable to JIT README (GH-121942)

(cherry picked from commit f113c1a2a9d4fb2860de1bd8c05677f00fd49bd9)
Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
15 months ago[3.13] gh-121528: Fix _PyObject_Init() assertion for stable ABI (GH-121725) (#121936)
Miss Islington (bot) [Wed, 17 Jul 2024 20:14:22 +0000 (22:14 +0200)] 
[3.13] gh-121528: Fix _PyObject_Init() assertion for stable ABI (GH-121725) (#121936)

gh-121528: Fix _PyObject_Init() assertion for stable ABI (GH-121725)

Add _Py_IsImmortalLoose() function for assertions.
(cherry picked from commit b826e459ca6b640f896c2a9551bb2c78d10f0e2b)

Co-authored-by: Victor Stinner <vstinner@python.org>
15 months ago[3.13] gh-121925: Fix uninitialized variables in `main.c` (GH-121926) (#121931)
Miss Islington (bot) [Wed, 17 Jul 2024 17:00:42 +0000 (19:00 +0200)] 
[3.13] gh-121925: Fix uninitialized variables in `main.c` (GH-121926) (#121931)

gh-121925: Fix uninitialized variables in `main.c` (GH-121926)
(cherry picked from commit f4bc84d261c828ed81f137f2a48fa2f0de7a0211)

Co-authored-by: sobolevn <mail@sobolevn.me>
15 months ago[3.13] gh-120678: Guard against stdin.fileno() being unavailable (GH-121924) (#121929)
Miss Islington (bot) [Wed, 17 Jul 2024 16:33:28 +0000 (18:33 +0200)] 
[3.13] gh-120678: Guard against stdin.fileno() being unavailable (GH-121924) (#121929)

gh-120678: Guard against stdin.fileno() being unavailable (GH-121924)
(cherry picked from commit 19cbf8fd636192059550d0c908c3e29797feed1f)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
15 months ago[3.13] Move misplaced blurb entries (#121919)
T. Wouters [Wed, 17 Jul 2024 15:33:30 +0000 (17:33 +0200)] 
[3.13] Move misplaced blurb entries (#121919)

Move misplaced blurb entries from "C_API" to "C API", and from "Core_and_Builtins" to "Core and Builtins".

15 months ago[3.13] gh-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904...
Miss Islington (bot) [Wed, 17 Jul 2024 14:52:46 +0000 (16:52 +0200)] 
[3.13] gh-120678: pyrepl: Include globals from modules passed with `-i` (GH-120904) (#121916)

(cherry picked from commit ac07451116d52dd6a5545d27b6a2e3737ed27cf0)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
15 months ago[3.13] gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz (GH-121876) (...
Miss Islington (bot) [Wed, 17 Jul 2024 14:10:13 +0000 (16:10 +0200)] 
[3.13] gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz (GH-121876) (#121911)

gh-78889: Stop IDLE Shell freezes from sys.stdout.shell.xyz (GH-121876)

Problem occurred when attribute xyz could not be pickled.
Since this is not trivial to selectively fix, block all
attributes (other than 'width').  IDLE does not access them
and they are private implementation details.
(cherry picked from commit 58753f33e47fe48906883dc010771f68c13b7e52)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
15 months ago[3.13] gh-119698: fix a special case in `symtable.Class.get_methods` (GH-121802)...
Miss Islington (bot) [Wed, 17 Jul 2024 13:54:40 +0000 (15:54 +0200)] 
[3.13] gh-119698: fix a special case in `symtable.Class.get_methods` (GH-121802) (#121909)

(cherry picked from commit 6682d916780c1cb305e679a057ee6992b114118e)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
15 months ago[3.13] gh-113993: Don't immortalize in PyUnicode_InternInPlace; keep immortalizing...
Petr Viktorin [Wed, 17 Jul 2024 12:51:42 +0000 (14:51 +0200)] 
[3.13] gh-113993: Don't immortalize in PyUnicode_InternInPlace; keep immortalizing in other API (GH-121364) (GH-121854)

* Switch PyUnicode_InternInPlace to _PyUnicode_InternMortal, clarify docs

* Document immortality in some functions that take `const char *`

This is PyUnicode_InternFromString;
PyDict_SetItemString, PyObject_SetAttrString;
PyObject_DelAttrString; PyUnicode_InternFromString;
and the PyModule_Add convenience functions.

Always point out a non-immortalizing alternative.

* Don't immortalize user-provided attr names in _ctypes
(cherry picked from commit b4aedb23ae7954fb58084dda16cd41786819a8cf)

15 months ago[3.13] gh-121863: Immortalize names in code objects to avoid crash (GH-121903) (GH...
Miss Islington (bot) [Wed, 17 Jul 2024 09:55:22 +0000 (11:55 +0200)] 
[3.13] gh-121863: Immortalize names in code objects to avoid crash (GH-121903) (GH-121904)

(cherry picked from commit cffad5c6ef9371b26e32556296cea2bfe8358b1a)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
15 months ago[3.13] gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154)...
Serhiy Storchaka [Wed, 17 Jul 2024 08:04:45 +0000 (11:04 +0300)] 
[3.13] gh-121153: Fix some errors with use of _PyLong_CompactValue() (GH-121154) (GH-121900)

* The result has type Py_ssize_t, not intptr_t.
* Type cast between unsigned and signed integer types should be explicit.
* Downcasting should be explicit.
* Fix integer overflow check in sum().
(cherry picked from commit 1801545)

15 months ago[3.13] Remove duplicate "it" in whatsnew 3.13 (GH-121580) (gh-121899)
Miss Islington (bot) [Wed, 17 Jul 2024 07:52:22 +0000 (09:52 +0200)] 
[3.13] Remove duplicate "it" in whatsnew 3.13 (GH-121580) (gh-121899)

15 months ago[3.13] gh-121834: Improve `complex` C-API docs (GH-121835) (#121895)
Miss Islington (bot) [Wed, 17 Jul 2024 07:25:07 +0000 (09:25 +0200)] 
[3.13] gh-121834: Improve `complex` C-API docs (GH-121835) (#121895)

gh-121834: Improve `complex` C-API docs (GH-121835)
(cherry picked from commit 72dccd60735b597e99c007a7b69210763a746877)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
15 months ago[3.13] gh-121842: Improve coverage of `PyBytes_FromStringAndSize` (GH-121843) (#121893)
Miss Islington (bot) [Wed, 17 Jul 2024 07:24:44 +0000 (09:24 +0200)] 
[3.13] gh-121842: Improve coverage of `PyBytes_FromStringAndSize` (GH-121843) (#121893)

gh-121842: Improve coverage of `PyBytes_FromStringAndSize` (GH-121843)
(cherry picked from commit f6c7d8d79c4e17167af98f2e0cb4b1e55d7b5d3c)

Co-authored-by: sobolevn <mail@sobolevn.me>
15 months ago[3.13] gh-121453: Update the `Doc/templates/download.html` download files size estima...
Miss Islington (bot) [Wed, 17 Jul 2024 06:37:33 +0000 (08:37 +0200)] 
[3.13] gh-121453: Update the `Doc/templates/download.html` download files size estimates and support download `.texi` format. (GH-121454) (#121890)

Co-authored-by: Wulian233 <1055917385@qq.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
15 months ago[3.13] gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH (GH-121872...
Miss Islington (bot) [Wed, 17 Jul 2024 06:12:12 +0000 (08:12 +0200)] 
[3.13] gh-121871: Allow overriding docs build date with SOURCE_DATE_EPOCH (GH-121872) (#121888)

Co-authored-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
15 months ago[3.13] GH-121583: Remove dependency from pystats.h to internal header file (GH-121880)
Miss Islington (bot) [Tue, 16 Jul 2024 23:03:07 +0000 (01:03 +0200)] 
[3.13] GH-121583: Remove dependency from pystats.h to internal header file (GH-121880)

(cherry picked from commit f036a463dbc43d25712183dc6afa4e38c1aaf93d)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
15 months ago[3.13] GH-120371: Add WASI SDK 22 support (GH-121870) (GH-121873)
Miss Islington (bot) [Tue, 16 Jul 2024 21:49:55 +0000 (23:49 +0200)] 
[3.13] GH-120371: Add WASI SDK 22 support (GH-121870) (GH-121873)

GH-120371: Add WASI SDK 22 support (GH-121870)

Required disabling stub functions now provided by wasi-libc.
(cherry picked from commit f589f263bcb54332e47bfc76cbb06f775e82b778)

Co-authored-by: Brett Cannon <brett@python.org>
15 months ago[3.13] gh-83648: Use versionadded in 'deprecated' description (GH-121878)
Miss Islington (bot) [Tue, 16 Jul 2024 21:43:40 +0000 (23:43 +0200)] 
[3.13] gh-83648: Use versionadded in 'deprecated' description (GH-121878)

(cherry picked from commit 4e35dd607b0f32657341e6c4f583d14964ee1699)

Authored-by: Zachary Ware <zach@python.org>
15 months ago[3.13] gh-121860: Fix crash when materializing managed dict (GH-121866) (#121867)
Miss Islington (bot) [Tue, 16 Jul 2024 19:26:01 +0000 (21:26 +0200)] 
[3.13] gh-121860: Fix crash when materializing managed dict (GH-121866) (#121867)

The object's inline values may be marked invalid if the materialized
dict was already initialized and then deleted.
(cherry picked from commit 162b41f57757c1df40eb377985e2e877fb0f0ea3)

Co-authored-by: Sam Gross <colesbury@gmail.com>
15 months ago[3.13] gh-121130: Fix f-string format specifiers with debug expressions (GH-121150...
Pablo Galindo Salgado [Tue, 16 Jul 2024 19:25:04 +0000 (20:25 +0100)] 
[3.13] gh-121130: Fix f-string format specifiers with debug expressions (GH-121150) (#121868)

(cherry picked from commit c46d64e0ef8e92a6b4ab4805d813d7e4d6663380)

15 months ago[3.13] gh-121621: Move asyncio running loop to thread state (GH-121695) (GH-121864)
Miss Islington (bot) [Tue, 16 Jul 2024 17:57:37 +0000 (19:57 +0200)] 
[3.13] gh-121621: Move asyncio running loop to thread state (GH-121695) (GH-121864)

gh-121621: Move asyncio running loop to thread state (GH-121695)
(cherry picked from commit 69c68de43aef03dd52fabd21f99cb3b0f9329201)

Co-authored-by: Ken Jin <kenjin@python.org>
15 months ago[3.13] gh-121814: Only check f_trace_opcodes if Python frame exists (GH-121818) ...
Miss Islington (bot) [Tue, 16 Jul 2024 17:13:28 +0000 (19:13 +0200)] 
[3.13] gh-121814: Only check f_trace_opcodes if Python frame exists (GH-121818) (#121861)

gh-121814: Only check f_trace_opcodes if Python frame exists (GH-121818)
(cherry picked from commit 2b1b68939b15b913080a3403e3ba18e2a1f520ef)

Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Co-authored-by: Matt Wozniski <godlygeek@gmail.com>
15 months ago[3.13] GH-105879: Note exec/eval keyword change in What's New (GH-121831) (#121852)
Miss Islington (bot) [Tue, 16 Jul 2024 16:01:03 +0000 (18:01 +0200)] 
[3.13] GH-105879: Note exec/eval keyword change in What's New (GH-121831) (#121852)

GH-105879: Note exec/eval keyword change in What's New (GH-121831)
(cherry picked from commit d7a099d7ae749798bd822aee5d1d46d0a335189b)

Co-authored-by: Alyssa Coghlan <ncoghlan@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
15 months ago[3.13] gh-121160: Add some tests for readline.set_history_length (GH-121326) (GH...
Miss Islington (bot) [Tue, 16 Jul 2024 15:15:51 +0000 (17:15 +0200)] 
[3.13] gh-121160: Add some tests for readline.set_history_length (GH-121326) (GH-121856)

(cherry picked from commit 263c7e611bb24715e513d457a3477a61fff15162)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
15 months ago[3.13] gh-121403: Add notes for PyList_GetXXX APIs about the need for init (gh-121626...
Miss Islington (bot) [Tue, 16 Jul 2024 14:32:31 +0000 (16:32 +0200)] 
[3.13] gh-121403: Add notes for PyList_GetXXX APIs about the need for init (gh-121626) (gh-121827)

gh-121403: Add notes for PyList_GetXXX APIs about the need for init (gh-121626)
(cherry picked from commit 2bac2b86b1486f15038fb246835e04bb1b213cd8)

Co-authored-by: Donghee Na <donghee.na@python.org>
15 months ago[3.13] CI: Fix using `check_source` flags as bool (GH-121848) (#121853)
Miss Islington (bot) [Tue, 16 Jul 2024 14:09:05 +0000 (16:09 +0200)] 
[3.13] CI: Fix using `check_source` flags as bool (GH-121848) (#121853)

Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
15 months ago[3.13] gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal...
Miss Islington (bot) [Tue, 16 Jul 2024 13:42:49 +0000 (15:42 +0200)] 
[3.13] gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358) (GH-121851)

gh-113993: For string interning, do not rely on (or assert) _Py_IsImmortal (GH-121358)

Older stable ABI extensions are allowed to make immortal objects mortal.
Instead, use `_PyUnicode_STATE` (`interned` and `statically_allocated`).
(cherry picked from commit 956270d08d5c23f59937e2f29f8e0b7f63d68afd)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
15 months ago[3.13] gh-120522: Revert "Add a `--with-app-store-compliance` configure option to...
Miss Islington (bot) [Tue, 16 Jul 2024 11:14:19 +0000 (13:14 +0200)] 
[3.13] gh-120522: Revert "Add a `--with-app-store-compliance` configure option to patch out problematic code" (GH-121844) (#121845)

This reverts commit 0dfb437a32f9b9a8a0ae61d8c43c47417651f44e prior
to the release of 3.13.0b4 to allow for additional review time.
(cherry picked from commit f27593a87c344f3774ca73644a11cbd5614007ef)

Co-authored-by: Ned Deily <nad@python.org>
15 months ago[3.13] gh-120317: Lock around global state in the tokenize module (GH-120318) (#121841)
Miss Islington (bot) [Tue, 16 Jul 2024 10:03:47 +0000 (12:03 +0200)] 
[3.13] gh-120317: Lock around global state in the tokenize module (GH-120318) (#121841)

(cherry picked from commit 8549559f383dfcc0ad0c32496f62a4b737c05b4f)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
15 months ago[3.13] gh-121791: Check for `NULL` in `MethodDescriptor2_new` in `_testcapi` (GH...
Miss Islington (bot) [Tue, 16 Jul 2024 08:55:37 +0000 (10:55 +0200)] 
[3.13] gh-121791: Check for `NULL` in `MethodDescriptor2_new` in `_testcapi` (GH-121792) (#121839)

gh-121791: Check for `NULL` in `MethodDescriptor2_new` in `_testcapi` (GH-121792)
(cherry picked from commit 8b6d4755812d0b02e9f26beb9c9a7714e4c5ac28)

Co-authored-by: sobolevn <mail@sobolevn.me>
15 months ago[3.13] gh-119189: Fix the power operator for Fraction (GH-119242) (GH-119836)
Miss Islington (bot) [Tue, 16 Jul 2024 07:44:23 +0000 (09:44 +0200)] 
[3.13] gh-119189:  Fix the power operator for Fraction (GH-119242) (GH-119836)

When using the ** operator or pow() with Fraction as the base
and an exponent that is not rational, a float, or a complex, the
fraction is no longer converted to a float.
(cherry picked from commit b9965ef282d6662145d2e05b080c811132ce6fde)

Co-authored-by: Joshua Herman <30265+zitterbewegung@users.noreply.github.com>
15 months ago[3.13] gh-121295: Fix blocked console after interrupting a long paste (GH-121815...
Miss Islington (bot) [Tue, 16 Jul 2024 06:29:04 +0000 (08:29 +0200)] 
[3.13] gh-121295: Fix blocked console after interrupting a long paste (GH-121815) (GH-121826)

(cherry picked from commit 498a94c198e72525b8a7f4cb4f4a8957560f593a)

Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
15 months ago[3.13] gh-121610: pyrepl - handle extending blocks when multi-statement blocks are...
Miss Islington (bot) [Tue, 16 Jul 2024 06:28:41 +0000 (08:28 +0200)] 
[3.13] gh-121610: pyrepl - handle extending blocks when multi-statement blocks are pasted (GH-121757) (GH-121825)

console.compile with the "single" param throws an exception when
there are multiple statements, never allowing to adding newlines
to a pasted code block (gh-121610)

This adds a few extra checks to allow extending when in an indented
block, and tests for a few examples.

(cherry picked from commit 7d111dac160c658b277ec0fac75eee8edcfbe9dc)

Co-authored-by: saucoide <32314353+saucoide@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
15 months ago[3.13] gh-120831: Increase the default minimum supported iOS version to 13.0 (GH...
Miss Islington (bot) [Tue, 16 Jul 2024 04:57:05 +0000 (06:57 +0200)] 
[3.13] gh-120831: Increase the default minimum supported iOS version to 13.0 (GH-121250) (#121833)

gh-120831: Increase the default minimum supported iOS version to 13.0 (GH-121250)

Increases the default minimum iOS version to 13.0.

(cherry picked from commit 7e91e0dcfe2faab1e1a4630e6f745aa30ca87b3d)

Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
15 months ago[3.13] gh-121605: Fix test hang when pyrepl is not available (GH-121820) (GH-121823)
Miss Islington (bot) [Mon, 15 Jul 2024 23:15:18 +0000 (01:15 +0200)] 
[3.13] gh-121605: Fix test hang when pyrepl is not available (GH-121820) (GH-121823)

The fallback repl does not support "exit" without parentheses, so the
test would hang until the timeout expired.
(cherry picked from commit 4134261ab831863565fefc7a04d05a1fc1bca2f8)

Co-authored-by: Sam Gross <colesbury@gmail.com>
15 months ago[3.13] gh-121790: Fix interactive console initialization (GH-121793) (GH-121822)
Miss Islington (bot) [Mon, 15 Jul 2024 22:49:41 +0000 (00:49 +0200)] 
[3.13] gh-121790: Fix interactive console initialization (GH-121793) (GH-121822)

(cherry picked from commit e5c7216f376a06d2c931daf999e2980e494e747e)

Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
15 months ago[3.13] gh-121794: Don't set `ob_tid` to zero in fast-path dealloc (GH-121799) (#121821)
Miss Islington (bot) [Mon, 15 Jul 2024 22:15:23 +0000 (00:15 +0200)] 
[3.13] gh-121794: Don't set `ob_tid` to zero in fast-path dealloc (GH-121799) (#121821)

We should maintain the invariant that a zero `ob_tid` implies the
refcount fields are merged.

* Move the assignment in `_Py_MergeZeroLocalRefcount` to immediately
  before the refcount merge.
* Update `_PyTrash_thread_destroy_chain` to set `ob_ref_shared` to
  `_Py_REF_MERGED` when setting `ob_tid` to zero.

Also check this invariant with assertions in the GC in debug builds.
That uncovered a bug when running out of memory during GC.
(cherry picked from commit d23be3947ced081914f4458c84f729c9c37f0219)

Co-authored-by: Sam Gross <colesbury@gmail.com>
15 months ago[3.13] gh-117657: Skip tests that fork with threads under TSan (GH-121599) (#121819)
Miss Islington (bot) [Mon, 15 Jul 2024 21:10:37 +0000 (23:10 +0200)] 
[3.13] gh-117657: Skip tests that fork with threads under TSan (GH-121599) (#121819)

This avoids messages like:

  ThreadSanitizer: starting new threads after multi-threaded fork is not
  supported. Dying (set die_after_fork=0 to override)
(cherry picked from commit 82a4dac9f6131954c32dac9d0277283fc5b499a9)

Co-authored-by: Sam Gross <colesbury@gmail.com>
15 months ago[3.13] gh-121546: Disable contextvar caching on free-threading build (GH-121740)...
Miss Islington (bot) [Mon, 15 Jul 2024 20:53:52 +0000 (22:53 +0200)] 
[3.13] gh-121546: Disable contextvar caching on free-threading build (GH-121740) (#121808)

gh-121546: Disable contextvar caching on free-threading build (GH-121740)
(cherry picked from commit e904300882055bed71cae59f8ca9161066659b7c)

Co-authored-by: Ken Jin <kenjin@python.org>
15 months ago[3.13] gh-121245: Refactor site.register_readline() (GH-121659) (GH-121816)
Miss Islington (bot) [Mon, 15 Jul 2024 20:49:18 +0000 (22:49 +0200)] 
[3.13] gh-121245: Refactor site.register_readline() (GH-121659) (GH-121816)

(cherry picked from commit 05d413764c8ae793b8321c21cb10094c934b8cb3)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
15 months ago[3.13] gh-121359: make clean environment (no PYTHON* vars) for test_pyrepl.TestMain...
Miss Islington (bot) [Mon, 15 Jul 2024 20:32:28 +0000 (22:32 +0200)] 
[3.13] gh-121359: make clean environment (no PYTHON* vars) for test_pyrepl.TestMain (GH-121672) (GH-121810)

(cherry picked from commit fd085a411ed2ccc9bde2338cf50068bc7f213ece)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
15 months ago[3.13] gh-76785: Expand How Interpreter Channels Handle Interpreter Finalization...
Miss Islington (bot) [Mon, 15 Jul 2024 20:15:47 +0000 (22:15 +0200)] 
[3.13] gh-76785: Expand How Interpreter Channels Handle Interpreter Finalization (gh-121811)

See 6b98b274b6 for an explanation of the problem and solution.  Here I've applied the solution to channels.

(cherry picked from commit 8b209fd4f8a9bf9603888bda2c44b5cfd4ebf47a, AKA gh-121805)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
15 months ago[3.13] gh-121657: Display correct error message for yield from outsid… (GH-121768)
Kirill Podoprigora [Mon, 15 Jul 2024 19:25:54 +0000 (22:25 +0300)] 
[3.13] gh-121657: Display correct error message for yield from outsid… (GH-121768)

(cherry picked from commit 178e44de8f023be7a5dc400044ab61983b191f24)

Co-authored-by: Gregor <36135323+gege-hoho@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
15 months ago[3.13] gh-76785: Expand How Interpreter Queues Handle Interpreter Finalization (gh...
Miss Islington (bot) [Mon, 15 Jul 2024 19:13:51 +0000 (21:13 +0200)] 
[3.13] gh-76785: Expand How Interpreter Queues Handle Interpreter Finalization (gh-121807)

Any cross-interpreter mechanism for passing objects between interpreters must be very careful to respect isolation, even when the object is effectively immutable (e.g. int, str).  Here this especially relates to when an interpreter sends one of its objects, and then is destroyed while the inter-interpreter machinery (e.g. queue) still holds a reference to the object.

When I added interpreters.Queue, I dealt with that case (using an atexit hook) by silently removing all items from the queue that were added by the finalizing interpreter.

Later, while working on concurrent.futures.InterpreterPoolExecutor (gh-116430), I noticed it was somewhat surprising when items were silently removed from the queue when the originating interpreter was destroyed.  (See my comment on that PR.)
 It took me a little while to realize what was going on.  I expect that users, which much less context than I have, would experience the same pain.

My approach, here, to improving the situation is to give users three options:

1. return a singleton (interpreters.queues.UNBOUND) from Queue.get() in place of each removed item
2. raise an exception (interpreters.queues.ItemInterpreterDestroyed) from Queue.get() in place of each removed item
3. existing behavior: silently remove each item (i.e. Queue.get() skips each one)

The default will now be (1), but users can still explicitly opt in any of them, including to the silent removal behavior.

The behavior for each item may be set with the corresponding Queue.put() call. and a queue-wide default may be set when the queue is created.  (This is the same as I did for "synconly".)

(cherry picked from commit 6b98b274b60a15b490d2ea85069638c037b2a9cd, AKA gh-116431)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
15 months ago[3.13] gh-118297: Make Sure All Pending Calls Run in _Py_FinishPendingCalls() (gh...
Miss Islington (bot) [Mon, 15 Jul 2024 19:09:40 +0000 (21:09 +0200)] 
[3.13] gh-118297: Make Sure All Pending Calls Run in _Py_FinishPendingCalls() (gh-121806)

(cherry picked from commit 985dd8e17b55ae35fc31546384fc9364f2f59f86, AKA gh-118298)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
15 months ago[3.13] gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754) (GH-121803)
Miss Islington (bot) [Mon, 15 Jul 2024 18:14:50 +0000 (20:14 +0200)] 
[3.13] gh-121746: Bind Alt+Enter to "accept" in the REPL (GH-121754) (GH-121803)

(cherry picked from commit 6522f0e438a8c56a8f3cce2095b193ea6e3f5016)

Co-authored-by: Rodrigo Girão Serrão <5621605+rodrigogiraoserrao@users.noreply.github.com>
15 months ago[3.13] gh-121621: Use PyMutex for writes to asyncio state (GH-121622) (#121774)
Sam Gross [Mon, 15 Jul 2024 05:14:35 +0000 (01:14 -0400)] 
[3.13] gh-121621: Use PyMutex for writes to asyncio state (GH-121622) (#121774)

(cherry picked from commit 5d6861ad06b524358f52603f242e7c0d57532a58)

Co-authored-by: Ken Jin <kenjin@python.org>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
15 months ago[3.13] gh-57141: Make shallow argument to filecmp.dircmp keyword-only (GH-121767...
Miss Islington (bot) [Sun, 14 Jul 2024 23:17:26 +0000 (01:17 +0200)] 
[3.13] gh-57141: Make shallow argument to filecmp.dircmp keyword-only (GH-121767) (#121777)

It is our general practice to make new optional parameters keyword-only,
even if the existing parameters are all positional-or-keyword. Passing
this parameter as positional would look confusing and could be error-prone
if additional parameters are added in the future.
(cherry picked from commit 50eec501fef46f0887df6f2f47d74f4defb35515)

Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
15 months ago[3.13] Generalize reusable Windows CI jobs (GH-121766) (#121775)
Miss Islington (bot) [Sun, 14 Jul 2024 21:46:37 +0000 (23:46 +0200)] 
[3.13] Generalize reusable Windows CI jobs (GH-121766) (#121775)

Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
15 months ago[3.13] gh-121731: Fix mimalloc compile error on GNU/Hurd (GH-121732) (#121773)
Miss Islington (bot) [Sun, 14 Jul 2024 17:14:30 +0000 (19:14 +0200)] 
[3.13] gh-121731: Fix mimalloc compile error on GNU/Hurd (GH-121732) (#121773)

(cherry picked from commit d005f2c1861dbf0ab3d9f80b54d05d0c0b522c3c)

Co-authored-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
15 months ago[3.13] gh-121660: Fix `ga_getitem` by explicitly checking for `NULL` result (GH-12166...
Miss Islington (bot) [Sun, 14 Jul 2024 11:48:33 +0000 (13:48 +0200)] 
[3.13] gh-121660: Fix `ga_getitem` by explicitly checking for `NULL` result (GH-121661) (#121761)

gh-121660: Fix `ga_getitem` by explicitly checking for `NULL` result (GH-121661)
(cherry picked from commit bb802db8cfa35a88582be32fae05fe1cf8f237b1)

Co-authored-by: sobolevn <mail@sobolevn.me>
15 months ago[3.13] Fix cache restoration for Hypothesis CI job (GH-121756) (#121759)
Miss Islington (bot) [Sun, 14 Jul 2024 11:47:07 +0000 (13:47 +0200)] 
[3.13] Fix cache restoration for Hypothesis CI job (GH-121756) (#121759)

Co-authored-by: Sviatoslav Sydorenko (Святослав Сидоренко) <wk@sydorenko.org.ua>
15 months ago[3.13] gh-121700 Emscripten trampolines not quite right since GH-106219 (GH-121701...
Miss Islington (bot) [Sun, 14 Jul 2024 10:37:00 +0000 (12:37 +0200)] 
[3.13] gh-121700 Emscripten trampolines not quite right since GH-106219 (GH-121701) (GH-121744)

(cherry picked from commit 3086b86cfda829e23a71569908edbfbcdc16327f)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
15 months ago[3.13] gh-121749: Fix discrepancy in docs for `PyModule_AddObjectRef` (GH-121750...
Miss Islington (bot) [Sun, 14 Jul 2024 10:31:46 +0000 (12:31 +0200)] 
[3.13] gh-121749: Fix discrepancy in docs for `PyModule_AddObjectRef` (GH-121750) (GH-121752)

(cherry picked from commit 26dfb2771236bfd96cdaa1081103f75141ecff47)

Co-authored-by: Dominic H <dom@dominic.sk>
15 months ago[3.13] gh-120012: clarify the behaviour of `multiprocessing.Queue.empty` on closed...
Miss Islington (bot) [Sun, 14 Jul 2024 10:24:58 +0000 (12:24 +0200)] 
[3.13] gh-120012: clarify the behaviour of `multiprocessing.Queue.empty` on closed queues. (GH-120102) (#120469)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
15 months ago[3.13] gh-121698 Emscripten: Use updated WebAssembly type reflection proposal (GH...
Miss Islington (bot) [Sun, 14 Jul 2024 10:01:03 +0000 (12:01 +0200)] 
[3.13] gh-121698 Emscripten: Use updated WebAssembly type reflection proposal (GH-121699) (GH-121745)

(cherry picked from commit cae15267166e217822e3c58ac22b7817162f323a)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
15 months ago[3.13] gh-64308: Remove TestProgram from the unittest docs (GH-121675) (GH-121742)
Miss Islington (bot) [Sun, 14 Jul 2024 09:41:08 +0000 (11:41 +0200)] 
[3.13] gh-64308: Remove TestProgram from the unittest docs (GH-121675) (GH-121742)

(cherry picked from commit f6f4022a357f70f1c40945403065e81b6c2e4854)

Co-authored-by: Jan Musílek <jan.musilek@nic.cz>
15 months ago[3.13] gh-121609: Fix pasting of characters containing unicode character joiner ...
Miss Islington (bot) [Sun, 14 Jul 2024 09:02:46 +0000 (11:02 +0200)] 
[3.13] gh-121609: Fix pasting of characters containing unicode character joiner (GH-121667) (#121733)

Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
15 months ago[3.13] gh-121708: Improve test coverage for `unittest.util` (GH-121713) (GH-121738)
Miss Islington (bot) [Sun, 14 Jul 2024 08:32:41 +0000 (10:32 +0200)] 
[3.13] gh-121708: Improve test coverage for `unittest.util` (GH-121713) (GH-121738)

(cherry picked from commit 901ea411bf51f59f2a4b0b4fec6f60d29c76ca05)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
16 months ago[3.13] gh-120642: Move _PyCode_CODE() to the internal C API (GH-121644) (#121729)
Miss Islington (bot) [Sat, 13 Jul 2024 21:31:30 +0000 (23:31 +0200)] 
[3.13] gh-120642: Move _PyCode_CODE() to the internal C API (GH-121644) (#121729)

gh-120642: Move _PyCode_CODE() to the internal C API (GH-121644)

Move _PyCode_CODE() and _PyCode_NBYTES() macros to the internal C API
since they use _Py_CODEUNIT which is only part of the internal C API.
(cherry picked from commit a2bec77d25b11f50362a7117223f6d1d5029a909)

Co-authored-by: Victor Stinner <vstinner@python.org>
16 months ago[3.13] gh-73159 Added clarifications in multiprocessing docs on that objects are...
Miss Islington (bot) [Sat, 13 Jul 2024 20:26:15 +0000 (22:26 +0200)] 
[3.13] gh-73159 Added clarifications in multiprocessing docs on that objects are pickled. (GH-121686) (#121727)

gh-73159 Added clarifications in multiprocessing docs on that objects are pickled. (GH-121686)

Added explicit comments about that objects are pickled when transmitted via multiprocessing queues and pipes.
(cherry picked from commit b5805892d55e769335c11a994b586355720263ba)

Co-authored-by: Ulrik Södergren <ulrik@digitalfotografen.se>
16 months ago[3.13] gh-121652: Handle `allocate_weakref` returning NULL (GH-121653) (#121721)
Miss Islington (bot) [Sat, 13 Jul 2024 16:31:50 +0000 (18:31 +0200)] 
[3.13] gh-121652: Handle `allocate_weakref` returning NULL (GH-121653) (#121721)

The `allocate_weakref` may return NULL when out of memory. We need to
handle that case and propagate the error.
(cherry picked from commit a640a605a8a1a3f73b98f948d0c2a7d42134f692)

Co-authored-by: Sam Gross <colesbury@gmail.com>
16 months ago[3.13] gh-121711: Set `-m asyncio` return_code to 1 for ENOTTY (GH-121714) (GH-121718)
Miss Islington (bot) [Sat, 13 Jul 2024 16:24:52 +0000 (18:24 +0200)] 
[3.13] gh-121711: Set `-m asyncio` return_code to 1 for ENOTTY (GH-121714) (GH-121718)

Set return_code to 1 for ENOTTY
(cherry picked from commit a1834742936a3a2164c25c14ecf4ae6a95288ca3)

Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.com>
16 months ago[3.13] gh-121605: Increase timeout in test_pyrepl.run_repl (GH-121606) (#121702)
Miss Islington (bot) [Sat, 13 Jul 2024 16:07:12 +0000 (18:07 +0200)] 
[3.13] gh-121605: Increase timeout in test_pyrepl.run_repl (GH-121606) (#121702)

We also need to close the `slave_fd` earlier so that reading from
`master_fd` won't block forever when the subprocess finishes.
(cherry picked from commit abc3aeebdbae560476f2f8c0312e9a4bf0dbfd33)

Co-authored-by: Sam Gross <colesbury@gmail.com>
16 months ago[3.13] gh-120452: improve documentation about private name mangling (GH-120451) ...
Miss Islington (bot) [Sat, 13 Jul 2024 15:21:30 +0000 (17:21 +0200)] 
[3.13] gh-120452: improve documentation about private name mangling (GH-120451) (#121715)

gh-120452: improve documentation about private name mangling (GH-120451)
(cherry picked from commit f4d6e45c1e7161878b36ef9e876ca3e44b80a97d)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
16 months ago[3.13] gh-120823: Fix doc for ftplib.FTP.retrbinary() (GH-121697) (GH-121707)
Miss Islington (bot) [Sat, 13 Jul 2024 14:45:32 +0000 (16:45 +0200)] 
[3.13] gh-120823: Fix doc for ftplib.FTP.retrbinary() (GH-121697) (GH-121707)

(cherry picked from commit 422855ad21f09b82c0bfa891dfb8fb48182c6d2b)

Co-authored-by: Mirela Andreea GRIGORAS <magrigoras@bitdefender.com>
16 months ago[3.13] gh-121497: Make Pyrepl respect correctly the history with input hook set ...
Miss Islington (bot) [Sat, 13 Jul 2024 14:28:49 +0000 (16:28 +0200)] 
[3.13] gh-121497: Make Pyrepl respect correctly the history with input hook set (GH-121498) (#121703)

gh-121497: Make Pyrepl respect correctly the history with input hook set (GH-121498)
(cherry picked from commit 4e36dd7d87eb0f1bd1ecd53e368c16a5f75967a0)

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
16 months ago[3.13] gh-121499: Fix multi-line history rendering in the REPL (GH-121531) (#121679)
Miss Islington (bot) [Sat, 13 Jul 2024 13:56:56 +0000 (15:56 +0200)] 
[3.13] gh-121499: Fix multi-line history rendering in the REPL (GH-121531) (#121679)

gh-121499: Fix multi-line history rendering in the REPL (GH-121531)
(cherry picked from commit 4b9e10d0ea352592049c1f2a00318d7274143fa4)

Signed-off-by: Pablo Galindo <pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
16 months ago[3.13] gh-121671: Increase test coverage of `ast.get_docstring` (GH-121674) (GH-121691)
Miss Islington (bot) [Sat, 13 Jul 2024 13:30:40 +0000 (15:30 +0200)] 
[3.13] gh-121671: Increase test coverage of `ast.get_docstring` (GH-121674) (GH-121691)

(cherry picked from commit 0a26aa5007cb32610366c31fbac846b5fe2f4f90)

Co-authored-by: Tomas R <tomas.roun8@gmail.com>
16 months ago[3.13] gh-96765: Update ConfigParser.read() docs with multi-file read example (GH...
Miss Islington (bot) [Sat, 13 Jul 2024 13:07:40 +0000 (15:07 +0200)] 
[3.13] gh-96765: Update ConfigParser.read() docs with multi-file read example (GH-121664) (GH-121687)

(cherry picked from commit fc2178117538c161471711073887f34bcd464cc1)

Co-authored-by: Timon Viola <44016238+timonviola@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
16 months ago[3.13] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482...
Hugo van Kemenade [Sat, 13 Jul 2024 12:55:43 +0000 (14:55 +0200)] 
[3.13] NEWS: Fix Sphinx warnings and increase threshold for new news nits (GH-121482) (#121513)

Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
16 months ago[3.13] gh-120198: Stop the world when setting __class__ on free-threaded build (...
Ken Jin [Fri, 12 Jul 2024 11:35:53 +0000 (19:35 +0800)] 
[3.13] gh-120198: Stop the world when setting __class__ on free-threaded build (#121591)

(cherry-picked from commit 3bfc9c8)

16 months ago[3.13] Update retroactive comments from GH-117741 (segfault in `FutureIter_dealloc...
Miss Islington (bot) [Fri, 12 Jul 2024 09:00:09 +0000 (11:00 +0200)] 
[3.13] Update retroactive comments from GH-117741 (segfault in `FutureIter_dealloc`) (GH-121638) (GH-121642)

Update retroactive comments from GH-117741 (segfault in `FutureIter_dealloc`) (GH-121638)

Address comments
(cherry picked from commit 65fededf9cc1780d5edbef8a6e0a7cf9bc15aea6)

Co-authored-by: Savannah Ostrowski <savannahostrowski@gmail.com>
16 months ago[3.13] gh-121103: Put free-threaded libraries in `lib/python3.14t` (GH-121293) (...
Miss Islington (bot) [Thu, 11 Jul 2024 21:00:28 +0000 (23:00 +0200)] 
[3.13] gh-121103: Put free-threaded libraries in `lib/python3.14t` (GH-121293) (#121631)

On POSIX systems, excluding macOS framework installs, the lib directory
for the free-threaded build now includes a "t" suffix to avoid conflicts
with a co-located default build installation.
(cherry picked from commit e8c91d90ba8fab410a27fad4f709cc73f6ffcbf4)

Co-authored-by: Sam Gross <colesbury@gmail.com>
16 months ago[3.13] gh-117482: Fix Builtin Types Slot Wrappers (gh-121630)
Miss Islington (bot) [Thu, 11 Jul 2024 20:47:38 +0000 (22:47 +0200)] 
[3.13] gh-117482: Fix Builtin Types Slot Wrappers (gh-121630)

When builtin static types are initialized for a subinterpreter, various "tp" slots have already been inherited (for the main interpreter).  This was interfering with the logic in add_operators() (in Objects/typeobject.c), causing a wrapper to get created when it shouldn't.  This change fixes that by preserving the original data from the static type struct and checking that.

(cherry picked from commit 5250a031332eb9499d5fc190d7287642e5a144b9, AKA gh-121602)

Co-authored-by: Eric Snow <ericsnowcurrently@gmail.com>
16 months ago[3.13] gh-121332: Make AST node constructor check _attributes instead of hardcoding...
Jelle Zijlstra [Thu, 11 Jul 2024 15:51:32 +0000 (08:51 -0700)] 
[3.13] gh-121332: Make AST node constructor check _attributes instead of hardcoding attributes (GH-121334) (#121625)

(cherry picked from commit 58e8cf2bb61f82df9eabd1209fe5e3d146e4c8cd)

16 months ago[3.13] gh-121592: Make select.poll() and related objects thread-safe (GH-121594)...
Miss Islington (bot) [Thu, 11 Jul 2024 14:44:54 +0000 (16:44 +0200)] 
[3.13] gh-121592: Make select.poll() and related objects thread-safe (GH-121594) (#121623)

This makes select.poll() and kqueue() objects thread-safe in the
free-threaded build. Note that calling close() concurrently with other
functions is still not thread-safe due to races on file descriptors
(gh-121544).
(cherry picked from commit 44937d11a6a045a624918db78aa36e715ffabcd4)

Co-authored-by: Sam Gross <colesbury@gmail.com>
16 months ago[3.13] gh-121615: Improve `module.rst` C-API docs with better error descriptions...
Miss Islington (bot) [Thu, 11 Jul 2024 09:15:18 +0000 (11:15 +0200)] 
[3.13] gh-121615: Improve `module.rst` C-API docs with better error descriptions (GH-121616) (#121618)

gh-121615: Improve `module.rst` C-API docs with better error descriptions (GH-121616)
(cherry picked from commit e6264b44dc7221c713b14dfa0f5929b33d362829)

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