Skip to content

3.13 update #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1,265 commits into
base: 3.13
Choose a base branch
from
Open

3.13 update #2

wants to merge 1,265 commits into from

Conversation

Oliveoilollie
Copy link

No description provided.

@Oliveoilollie
Copy link
Author

cool

miss-islington and others added 29 commits June 23, 2025 22:59
…135510) (GH-135867)

Docs: Use `arguments` to replace `args` in `argparse.rst` (GH-135510)
(cherry picked from commit caad163)

Co-authored-by: Yongzi Li <[email protected]>
)

gh-135494: Fix python -m test --pgo -x test_re (#135713)

Fix regrtest to support excluding tests from --pgo tests.

(cherry picked from commit 15c6d63)
…ntegers (GH-135506) (#135886)

gh-135487: fix `reprlib.Repr.repr_int` when given very large integers (GH-135506)
(cherry picked from commit e5f03b9)

Co-authored-by: Bénédikt Tran <[email protected]>
…35889) (#135895)

gh-135878: Fix crash in `types.SimpleNamespace.__repr__` (GH-135889)
(cherry picked from commit b3ab94a)

Co-authored-by: sobolevn <[email protected]>
Co-authored-by: Peter Bierma <[email protected]>
…nterpreters.set___main___attrs` (gh-135903)

(cherry picked from commit 4e6f0d1, AKA gh-135856)
…ros (GH-135762) (GH-135917)

(cherry picked from commit ca87a47)

Co-authored-by: Peter Bierma <[email protected]>
Co-authored-by: Brian Schubert <[email protected]>
Co-authored-by: Petr Viktorin <[email protected]>
…pchannelsmodule` (GH-135840) (#135919)

(cherry picked from commit dd59c78)
… productionlist (GH-129977) (GH-135941)

Docs: Add cross-reference for `positional_item` in the `calls` productionlist (GH-129977)

Add missing hyperlink for `positional_item`
(cherry picked from commit d215491)

Co-authored-by: HarryLHW <[email protected]>
…zero timeout (gh-135872) (gh-135947)

The free threading build could spin unnecessarily on `_Py_yield()` if the initial
compare and swap failed.
(cherry picked from commit cbfaf41)

Co-authored-by: Joseph Tibbertsma <[email protected]>
…134393) (GH-135949)

Docs: Fix indentation in `slice` class of `functions.rst` (GH-134393)

Paragraph should not be under `slice.step`. It applies to the whole class.

(cherry picked from commit 6227662)

Co-authored-by: Rob Reynolds <[email protected]>
…135957) (#135963)

gh-135956: Remove duplicate word in _pydatetime docstring (GH-135957)

_pydatetime.isoformat docstring repeats 'giving'.
(cherry picked from commit e3ea6f2)

Co-authored-by: Terry Jan Reedy <[email protected]>
…GH-135964) (#135978)

gh-135965: Delete duplicate word in isolating-extensions howto (GH-135964)

Change use use to use.
(cherry picked from commit ffb2a02)

Co-authored-by: Weilin Du <[email protected]>
…H-135152) (GH-135986)

gh-135110: Fix misleading `generator.close()` documentation (GH-135152)

The documentation incorrectly stated that generator.close() 'raises' a
GeneratorExit exception. This was misleading because the method doesn't
raise the exception to the caller - it sends the exception internally
to the generator and returns None.
(cherry picked from commit 0d76dcc)

Co-authored-by: Connor Denihan <[email protected]>
…136000)

IDLE: Update NEWS2x.txt with 2.7.0 release date (GH-129908)
(cherry picked from commit 642e5df)

Co-authored-by: Stan Ulbrych <[email protected]>
…36002)

gh-135995: Fix missing char in palmos encoding (GH-135990)

0x8b correctly encodes to ‹, but 0x9b was mistakenly marked as a control character instead of ›.
---------
(cherry picked from commit 58a42de)

Co-authored-by: Nathan Korth <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Brian Schubert <[email protected]>
Co-authored-by: Terry Jan Reedy <[email protected]>
…ctory (GH-135967) (#136013)

The iOS testbed now treats the app_packages folder as a site folder. This ensures it is
on the path, but also ensures any .pth files are processed on app startup.
(cherry picked from commit b38810b)
Adds iOS binary stubs for invoking `strip`
(cherry picked from commit 0c6c09b)

Co-authored-by: Russell Keith-Magee <[email protected]>
…ales (GH-135971) (GH-136020)

* Add detection of decimal non-ASCII alt digits.
* Add support of non-decimal alt digits on locale lzh_TW.
* Accept only numbers in correct range if alt digits are known.
* Fix bug in detecting the position of the week day name on locales byn_ER and wal_ET.
* Fix support of single-digit hour on locales ar_SA and bg_BG.
* Add support for %T, %R, %r, %C, %OC.
* Prepare code to use nl_langinfo().

(cherry picked from commit 07183eb)

Co-authored-by: Serhiy Storchaka <[email protected]>
…s is not instantiable (GH-135981) (GH-136031)

Previous error message suggested to use cls.__new__(), which
obviously does not work. Now the error message is the same as for
cls(...).
(cherry picked from commit c45f4f3)
…strptime() (GH-136029) (GH-136038)

This affects locales az_AZ, ber_DZ, ber_MA and crh_UA.
(cherry picked from commit 731f5b8)

Co-authored-by: Serhiy Storchaka <[email protected]>
GH-108854 (GH-136027) (#136044)

gh-108765: fix comment about macro definitions in `_stat.c` post GH-108854 (GH-136027)
(cherry picked from commit 0141e7f)

Co-authored-by: Lee Dogeon <[email protected]>
) (#136041)

(cherry picked from commit 065194c)

Co-authored-by: Will Childs-Klein <[email protected]>
…H-136075)

gh-76595: Add note on `PyCapsule_Import` behavior (GH-134022)
(cherry picked from commit 579acf4)

Co-authored-by: Nicolas Trangez <[email protected]>
Doc: Fix duplicate words in idlelib (GH-136089)
(cherry picked from commit f04d2b8)

Co-authored-by: Weilin Du <[email protected]>
miss-islington and others added 30 commits August 14, 2025 12:52
…137738)

gh-131788: make resource_tracker re-entrant safe (GH-131787)
(cherry picked from commit f24a012)

Co-authored-by: Thomas Grainger <[email protected]>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Gregory P. Smith <[email protected]>
…GH-137773)

"] ]>" and "]] >" no longer end the CDATA section.

Make CDATA section parsing  context depending.
Add private method HTMLParser._set_support_cdata() to change the context.
If called with True, "<[CDATA[" starts a CDATA section which ends with "]]>".
If called with False, "<[CDATA[" starts a bogus comments which ends with ">".
(cherry picked from commit 0cbbfc4)

Co-authored-by: Serhiy Storchaka <[email protected]>
…H-135365) (#137779)

gh-134262: Catch both URLError and ConnectionError in retries (GH-135365)
(cherry picked from commit acc20a8)

Co-authored-by: Emma Smith <[email protected]>
…acks with `PYTHONSTARTUP` (GH-137625) (#137778)

(cherry picked from commit 04f8ef6)

Co-authored-by: Kirill Podoprigora <[email protected]>
…-137823)

gh-137760: Update REPL constants documentation (gh-137798)
(cherry picked from commit d6719c6)

Co-authored-by: Chaemin-Lim <[email protected]>
…cumentation (GH-130976) (#137811)

Mention the "context manager" keyword in concurrent.futures documentation (GH-130976)
(cherry picked from commit 095bc77)

Co-authored-by: Jakub Stasiak <[email protected]>
) (GH-137833)

gh-131178: Add tests for `site` command-line interface  (GH-133582)
(cherry picked from commit 03f5519)

Co-authored-by: ggqlq <[email protected]>
…137851)

gh-101359: clarify docs for `asyncio.Event.clear` (GH-137849)
(cherry picked from commit 4b2dbe8)

Co-authored-by: Kumar Aditya <[email protected]>
GH-137852) (#137854)

gh-90483: fix docs of `SubprocessTransport.get_pipe_transport ` (GH-137852)
(cherry picked from commit 038a6e3)

Co-authored-by: Kumar Aditya <[email protected]>
gh-137846: Add missing 'be' to profile doc. (GH-137856)

Insert 'be' into 'will interpreted'.
(cherry picked from commit 3663b2a)

Co-authored-by: Terry Jan Reedy <[email protected]>
…er (GH-137873) (GH-137875)

Bogus comments that start with "<![CDATA[" should not include the starting "!"
in its value.
(cherry picked from commit 7636a66)

Co-authored-by: Serhiy Storchaka <[email protected]>
…L during finalization (GH-105805) (GH-137827)

* [3.13] gh-87135: Hang non-main threads that attempt to acquire the GIL during finalization (GH-105805)

Instead of surprise crashes and memory corruption, we now hang threads that attempt to re-enter the Python interpreter after Python runtime finalization has started. These are typically daemon threads (our long standing mis-feature) but could also be threads spawned by extension modules that then try to call into Python. This marks the `PyThread_exit_thread` public C API as deprecated as there is no plausible safe way to accomplish that on any supported platform in the face of things like C++ code with finalizers anywhere on a thread's stack. Doing this was the least bad option.

(cherry picked from commit 8cc5aa4)

Co-authored-by: Jeremy Maitin-Shepard <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>

* state "3.13.7 and earlier"
* backport: do not add the deprecated marker
* fix Py_IsFinalizing doc ref

---------

Co-authored-by: Jeremy Maitin-Shepard <[email protected]>
… to `asyncio.StreamWriter` docs (GH-137910) (#137913)

gh-135862: add C contiguous one-dimensional buffer requirement to `asyncio.StreamWriter` docs (GH-137910)
(cherry picked from commit 1c3950a)

Co-authored-by: Kumar Aditya <[email protected]>
…mpilation (GH-124131) (#137914)

gh-123085: _compile_importlib: Avoid copying sources before compilation (GH-124131)
(cherry picked from commit 42c8b05)

Co-authored-by: Petr Viktorin <[email protected]>
Co-authored-by: Jason R. Coombs <[email protected]>
…-137870) (GH-137917)

gh-44538: Mention nested classes/functions in doctest docs (GH-137870)
(cherry picked from commit 138ed6d)

Co-authored-by: Bartosz Sławecki <[email protected]>
…137925)

gh-134869: Fix Ctrl+C corrupts REPL  autocomplete (GH-134929)
(cherry picked from commit 8750e5e)

Co-authored-by: ggqlq <[email protected]>
…137935) (#137951)

[docs] fix grammar in ssl.SSLContect.sslsocket_class docs (GH-137935)

---------
(cherry picked from commit 379161d)

Co-authored-by: PrinceNaroliya <[email protected]>
Co-authored-by: Gregory P. Smith <[email protected]>
Unify documentation for all backends, enumerate all not implemented mapping
methods, document particularities of implemented mapping methods.
(cherry picked from commit 8700404)
Fix typo in `logging` docs (GH-137981)
(cherry picked from commit 9b5235b)

Co-authored-by: Maximilian Linhoff <[email protected]>
…H-137937) (#137991)

gh-137900: Improve dataclasses frozen parameter documentation (GH-137937)
(cherry picked from commit 7685b8a)

Co-authored-by: Tangyuan <[email protected]>
…H-137488) (GH-137995)

This fixes also inspect.getsourcelines() and inspect.getsource().
(cherry picked from commit eae9d7d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.