Gregory P. Smith
a696ba8b4d
[3.13] gh-142145: relax the no-longer-quadratic test timing (GH-143030) ( #143032 )
...
gh-142145: relax the no-longer-quadratic test timing (#143030 )
* gh-142145: relax the no-longer-quadratic test timing
* require cpu resource
(cherry picked from commit 8d2d7bb )
2025-12-21 00:22:07 +00:00
Miss Islington (bot)
86747f1a1a
[3.13] gh-142754: Ensure that Element & Attr instances have the ownerDocument attribute (GH-142794) ( #142819 )
...
gh-142754: Ensure that Element & Attr instances have the ownerDocument attribute (GH-142794)
(cherry picked from commit 1cc7551b3f )
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-20 15:56:59 -08:00
Mikhail Efimov
4504ff89d5
[3.13] gh-140373: Correctly emit PY_UNWIND event when generator is closed (GH-140767) ( #140821 )
2025-12-20 16:21:11 +02:00
Miro Hrončok
5d82520e38
[3.13] gh-141808: Don't remove the JIT stencils when building with PGO (GH-141809) (GH-142657) ( #142955 )
...
See: https://discuss.python.org/t/building-the-jit-with-pre-built-stencils/91838/12
(cherry picked from commit 8914148151 )
(cherry picked from commit 73c80f69ba )
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Mikhail Efimov <efimov.mikhail@gmail.com>
2025-12-20 12:58:01 +01:00
Miss Islington (bot)
98d97d76a8
[3.13] gh-143012: use Py_ssize_t cast for PyBytes_FromStringAndSize (GH-143013) ( #143015 )
...
gh-143012: use `Py_ssize_t` cast for `PyBytes_FromStringAndSize` (GH-143013)
(cherry picked from commit 5989095dfd )
Co-authored-by: AZero13 <gfunni234@gmail.com>
2025-12-20 07:59:55 +00:00
stratakis
4b8c9f5a7b
[3.13] gh-142776: Ensure fp file descriptor is closed on all code paths in import.c (GH-142777) ( #142989 )
...
gh-142776: Ensure fp file descriptor is closed on all code paths in import.c (GH-142777)
(cherry picked from commit 6a4f10325d )
2025-12-20 12:48:42 +05:30
Miss Islington (bot)
ae3834c97e
[3.13] gh-142681: Move NormalizationTest-3.2.0.txt to more safe place. (GH-142935) (GH-142945)
...
(cherry picked from commit 4a8ecbad80 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2025-12-19 13:34:18 +01:00
Miss Islington (bot)
20c3015e85
[3.13] gh-142527: Docs: Clarify that random.seed() discards the sign of an integer input (GH-142483) ( #142971 )
...
gh-142527: Docs: Clarify that random.seed() discards the sign of an integer input (GH-142483)
If *a* is an integer, the sign of *a* is discarded in the C source code. Clarify this behavior to prevent foot guns, where a common use case might naively assume that flipping the sign will produce different sequences (e.g. for a train/test split of a synthetic data generator in machine learning).
(cherry picked from commit 610aabfef2 )
Co-authored-by: Andrej <andrej.karpathy@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
2025-12-19 08:35:34 +00:00
Miss Islington (bot)
b5a29553d9
[3.13] gh-118342: [Enum] update docs (GH-137290) (GH-142954)
...
gh-118342: [Enum] update docs (GH-137290)
(cherry picked from commit e79c39101a )
Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-12-18 11:19:00 -08:00
Miss Islington (bot)
d6aa7e1d3d
[3.13] gh-142784: make the asyncio REPL call loop.close() at exit (GH-142785) ( #142932 )
...
gh-142784: make the asyncio REPL call `loop.close()` at exit (GH-142785)
(cherry picked from commit ddfc155d3a )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2025-12-18 22:34:03 +05:30
Savannah Ostrowski
8f7c4f1cef
[3.13] GH-100964: Fix reference cycle in exhausted generator frames (G… ( #142904 )
...
* [3.13] GH-100964: Fix reference cycle in exhausted generator frames (GH-141112)
(cherry picked from commit 92243dc62c )
Co-authored-by: Savannah Ostrowski <savannah@python.org>
2025-12-17 20:04:53 +00:00
Sam Gross
db552ddb1e
[3.13] gh-142766: Clear frame when generator.close() is called (gh-142838) ( #142900 )
...
(cherry picked from commit 25397f9541 )
2025-12-17 18:46:23 +00:00
Serhiy Storchaka
08d665d607
[3.13] gh-112127: Fix possible use-after-free in atexit.unregister() (GH-114092) (GH-142880)
...
(cherry picked from commit 2b466c47c3 )
Co-authored-by: Benjamin Johnson <ben332004@gmail.com>
2025-12-17 17:15:21 +00:00
Miss Islington (bot)
5e1a9c8392
[3.13] gh-142873: Do not check for PyContextVar_CheckExact twice in PyContextVar_Set (GH-142874) ( #142894 )
...
gh-142873: Do not check for `PyContextVar_CheckExact` twice in `PyContextVar_Set` (GH-142874)
(cherry picked from commit e61a447d0e )
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-12-17 17:04:39 +00:00
Miss Islington (bot)
42513a237f
[3.13] gh-142876: remove reference to thread in documentation of asyncio.Queue.shutdown (GH-142888) ( #142892 )
...
gh-142876: remove reference to thread in documentation of `asyncio.Queue.shutdown` (GH-142888)
(cherry picked from commit 77c8e6a2b8 )
Co-authored-by: Damian Birchler <damian@damianbirchler.net>
2025-12-17 16:53:14 +00:00
Miss Islington (bot)
e5fd7373b8
[3.13] decimal docs: specification link and examples (GH-128698) ( #142805 )
...
decimal docs: specification link and examples (GH-128698)
(cherry picked from commit 2450be607c )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: RUANG (James Roy) <longjinyii@outlook.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-17 21:42:35 +05:30
Miss Islington (bot)
53ca3b7b5c
[3.13] Fix os.posix_spawn() error handling (GH-142532) ( #142581 )
...
Fix os.posix_spawn() error handling (GH-142532)
Consistently use `goto exit;` in `py_posix_spawn()`.
(cherry picked from commit 8cfa351560 )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2025-12-17 15:43:51 +00:00
Miss Islington (bot)
7c2d9c9498
[3.13] gh-142836: Avoid /proc fd pipes on Solaris (GH-142853) ( #142855 )
...
gh-142836: Avoid /proc fd pipes on Solaris (GH-142853)
(cherry picked from commit c35b812e77 )
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2025-12-17 08:20:28 -05:00
Miss Islington (bot)
6990fbb289
[3.13] gh-142859: Add Tools/check-c-api-docs to mypy check (GH-142860) ( #142870 )
...
gh-142859: Add `Tools/check-c-api-docs` to mypy check (GH-142860)
(cherry picked from commit 248eb3efb3 )
Co-authored-by: sobolevn <mail@sobolevn.me>
2025-12-17 11:47:36 +00:00
Lysandros Nikolaou
90285941d8
[3.13] gh-140374: Add glossary entries related to multithreading (GH-140375) ( #142869 )
...
---------
(cherry picked from commit 1e9a0ee682 )
Co-authored-by: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com>
2025-12-17 12:22:33 +01:00
Miss Islington (bot)
e4ca817155
[3.13] gh-139320: Cover exception chaining in the docs of contextmanager.__exit__ (GH-140169) (GH-142793)
...
(cherry picked from commit a44509ea87 )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
2025-12-17 11:28:37 +01:00
Miss Islington (bot)
88b8e63c54
[3.13] gh-142783: Fix possible use after free in zoneinfo module (GH-142790) (GH-142861)
...
(cherry picked from commit 8307a14d0e )
Co-authored-by: wangxiaolei <fatelei@gmail.com>
2025-12-17 09:21:20 +00:00
Serhiy Storchaka
9361207bc2
[3.13] gh-142495: Make defaultdict keep existed value when racing with __missing__ (GH-142668) (GH-142858)
...
(cherry picked from commit a043407510 )
Co-authored-by: Edward Xu <xuxiangad@gmail.com>
2025-12-17 08:40:47 +00:00
Miss Islington (bot)
e07cda302e
[3.13] gh-142752: add more thread safety tests for mock (GH-142791) ( #142857 )
...
gh-142752: add more thread safety tests for mock (GH-142791)
(cherry picked from commit 4fd006e712 )
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-17 08:09:59 +00:00
Miss Islington (bot)
fb5474726c
[3.13] gh-142315: Don't pass the "real path" of Pdb script target to system functions (GH-142371) ( #142498 )
...
gh-142315: Don't pass the "real path" of Pdb script target to system functions (GH-142371
---------
(cherry picked from commit d716e3b2dd )
Co-authored-by: Bartosz Sławecki <bartosz@ilikepython.com>
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
2025-12-16 10:53:09 -05:00
Miss Islington (bot)
bce4a20195
[3.13] gh-130536: Add details to os.path documentation (GH-130557) ( #142801 )
...
Co-authored-by: Arthur Wigo <arthur.l.wigo@gmail.com>
2025-12-16 14:50:58 +00:00
Miss Islington (bot)
3b5c7ba76f
[3.13] gh-83926: BlockingIOError characters_written is byte count (GH-141215) ( #142815 )
...
gh-83926: BlockingIOError characters_written is byte count (GH-141215)
(cherry picked from commit e12c744b0a )
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
2025-12-16 12:04:13 +00:00
Miss Islington (bot)
8f25661ed9
[3.13] gh-142019: Add description about the exponent of result formatted with presentation type 'e' (GH-142084) ( #142814 )
...
Co-authored-by: 1nftf <QfxZ11@proton.me>
2025-12-16 12:02:07 +00:00
Miss Islington (bot)
c2d34a1396
[3.13] gh-141218: Fix inaccurate object comparison documentation (GH-141221) ( #142811 )
...
Co-authored-by: Mohsin Mehmood <55545648+mohsinm-dev@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-12-16 11:52:38 +00:00
Miss Islington (bot)
11629e0a8c
[3.13] Remove duplicate content in Mapping types - dict documentation (GH-141036) ( #142809 )
...
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
2025-12-16 11:52:07 +00:00
Miss Islington (bot)
1baa315222
[3.13] Correct Glossary key function example to use str.casefold instead of str.lower (GH-140316) ( #142806 )
...
Co-authored-by: Cameron Beck <94604154+cbkinase@users.noreply.github.com>
2025-12-16 11:50:02 +00:00
Miss Islington (bot)
2818224ef3
[3.13] gh-106318: Add examples for str.ljust() method (GH-142719) ( #142803 )
...
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-12-16 11:45:31 +00:00
Miss Islington (bot)
4ad9844f72
[3.13] gh-85204: Improve locale.setlocale example (GH-132683) ( #142799 )
...
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
2025-12-16 11:32:19 +00:00
Miss Islington (bot)
10738f19cc
[3.13] gh-124864: Extends smtplib documentation on ESMTP options format (GH-132547) ( #142797 )
...
Co-authored-by: Patrick R <codeZeilen@users.noreply.github.com>
2025-12-16 11:27:42 +00:00
Miss Islington (bot)
4480f5b661
[3.13] gh-142595: Amend be5e0dcded (fix NULL pointer dereference) (GH-142775) (GH-142789)
...
(cherry picked from commit 15a9762500 )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-16 13:00:40 +02:00
Miss Islington (bot)
c32a4c14fd
[3.13] gh-142020: ctypes docs: Note that find_library relies on the programs it runs (GH-142134) (GH-142749)
...
gh-142020: ctypes docs: Note that find_library relies on the programs it runs (GH-142134)
(cherry picked from commit e4d32a3ef9 )
2025-12-16 10:56:32 +01:00
Cody Maloney
affd2f2ff2
[3.13] gh-142594: fix by property calls io.TextIOWrapper.detach (GH-142706) (GH-142757)
...
(cherry picked from commit 1d3854a19a )
Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: yihong <zouzou0208@gmail.com>
2025-12-16 10:55:35 +01:00
Bartosz Sławecki
3e45440382
[3.13] gh-142737: Handle lost io.open in _Py_FindSourceFile (GH-142747) (GH-142774)
...
(cherry picked from commit f277781bba )
2025-12-15 23:27:15 +00:00
Miss Islington (bot)
4a49a11c62
[3.13] gh-85222: Document the global start method side effect in multiprocessing (GH-136426) ( #142771 )
...
gh-85222: Document the global start method side effect in multiprocessing (GH-136426)
* Document the ctx parameter in some types in multiprocessing.
* Reduce duplication while still linking to the central explanation from API points with the side effect.
(cherry picked from commit 0978b9a7d5 )
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Co-authored-by: R Chintan Meher <meherrihaan@gmail.com>
2025-12-15 22:18:57 +00:00
Miss Islington (bot)
f66684969e
[3.13] gh-142595: add type check for namedtuple call during decimal initialization (GH-142608) (GH-142622)
...
(cherry picked from commit be5e0dcded )
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
2025-12-15 15:04:11 +01:00
Miss Islington (bot)
8ebda57bb1
[3.13] gh-142651: make Mock.call_count thread-safe (GH-142656) ( #142744 )
...
gh-142651: make `Mock.call_count` thread-safe (GH-142656)
(cherry picked from commit 850f95f6f6 )
Co-authored-by: chaope <pengchaoandy@gmail.com>
2025-12-15 18:22:11 +05:30
Miss Islington (bot)
7957bfd1ac
[3.13] gh-90871: fix connection backlog offset in asyncio (gh-134392) ( #142739 )
...
gh-90871: fix connection backlog offset in asyncio (gh-134392)
(cherry picked from commit 109f7597d2 )
Co-authored-by: Christian Harries <68507104+ChristianHrs@users.noreply.github.com>
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-15 06:12:12 +00:00
Miss Islington (bot)
18bd88f899
[3.13] gh-127529: Correct asyncio's accept_connection behaviour for handling ConnectionAbortedError (GH-127532) ( #142738 )
...
gh-127529: Correct asyncio's `accept_connection` behaviour for handling `ConnectionAbortedError` (GH-127532)
(cherry picked from commit 830e10651b )
Co-authored-by: jb2170 <email@jb2170.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
2025-12-15 05:44:52 +00:00
Peter Bierma
5569ffedd8
[3.13] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102) (GH-142248)
...
* gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
(cherry picked from commit 1a7824a927 )
* [3.13] gh-141004: Add a CI job ensuring that new C APIs include documentation (GH-142102)
(cherry picked from commit 1a7824a927 )
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Update Tools/check-c-api-docs/ignored_c_api.txt
---------
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-14 22:19:48 -05:00
Miss Islington (bot)
13d9b0c1c4
[3.13] gh-142724: fix error path in _PyPegen_raise_tokenizer_init_error (GH-142725) ( #142727 )
...
Co-authored-by: AZero13 <gfunni234@gmail.com>
2025-12-14 22:35:54 +00:00
Miss Islington (bot)
e72ee65adf
[3.13] gh-106318: Add examples for str.isnumeric() (GH-142680) ( #142716 )
...
Co-authored-by: Adorilson Bezerra <adorilson@gmail.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
2025-12-14 18:57:38 +00:00
decorator-factory
d2ba756912
[3.13] gh-142411: Change documentation to reflect the new docstring adjustments in 3.13 (GH-142413) ( #142690 )
2025-12-14 14:22:33 +02:00
Serhiy Storchaka
d94a1811e6
[3.13] gh-142681: Improve unicodedata tests (GH-142682) (GH-142708) (GH-142710)
...
(cherry picked from commit f6ed94e70e )
(cherry picked from commit af7cca3c39 )
2025-12-14 12:22:24 +00:00
Serhiy Storchaka
cf4265345f
[3.13] gh-142461: Move misplaced NEWS entries to an appropriate section (GH-142464) (GH-142688) ( #142702 )
2025-12-14 12:55:15 +02:00
Miss Islington (bot)
16ce69eab7
[3.13] gh-141938: document treatment of OSError raised by HTTPConnection.getresponse (GH-142339) ( #142705 )
...
gh-141938: document treatment of `OSError` raised by `HTTPConnection.getresponse` (GH-142339)
(cherry picked from commit 11aef219f5 )
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
2025-12-14 10:18:08 +00:00