Skip to content

Backport 8a00c9a 3.13#131801

Closed
graingert wants to merge 1966 commits intopython:mainfrom
graingert:backport-8a00c9a-3.13
Closed

Backport 8a00c9a 3.13#131801
graingert wants to merge 1966 commits intopython:mainfrom
graingert:backport-8a00c9a-3.13

Conversation

@graingert
Copy link
Copy Markdown
Contributor

@graingert graingert commented Mar 27, 2025

Yhg1s and others added 30 commits February 4, 2025 15:51
) (pythonGH-129658)

(cherry picked from commit f61afca)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…pythonGH-129177) (pythonGH-129653)

(cherry picked from commit 979d766)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
…onGH-129588) (python#129713)

Instead, anyone requesting credit should submit a PR with contribution summary.
(Also fix typo in existing name.)
(cherry picked from commit 76e0182)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
…hon#129717)

Replace references to boilerplate files available in About IDLE and instead suggest clicking Help menu.

(cherry picked from commit d83a8a2)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
… (pythonGH-129723)

pythongh-118915: Fix bad link in documentation (pythonGH-129691)
(cherry picked from commit 779d069)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
…python#129734)

Remove an inaccurate note from `socket.recv` (pythonGH-129733)

Remove an inaccurate note from socket.recv.
(cherry picked from commit ded54c3)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
…ythonGH-129741) (python#129743)

pythongh-112020: Rework socketserver examples to be correct.

Outdated code updated, the BaseRequestHandler example is now much more
illustrative instead of the bad idea of a single recv() call for TCP.

tested, they now work.
(cherry picked from commit 78377c7)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
…free threaded build (pythongh-129704) (pythongh-129742)

The MemoryError freelist was not thread-safe in the free threaded build.
Use a mutex to protect accesses to the freelist. Unlike other freelists,
the MemoryError freelist is not performance sensitive.

(cherry picked from commit 51b4edb)
…r free-threading (pythongh-129738) (pythongh-129747)

The read of `shared->array` should happen under the lock to avoid a race.
(cherry picked from commit b4ff8b2)

Co-authored-by: Peter Hawkins <phawkins@google.com>
…atomic operat… (pythongh-129756)

pythongh-129533: Update PyGC_Enable/Disable/IsEnabled to use atomic operation  (pythongh-129563)

(cherry picked from commit b184abf)
…129755) (pythongh-129808)

Found while running `test_load_attr_module` from `test_opcache` under TSan.
(cherry picked from commit 34379d0)

Co-authored-by: Sam Gross <colesbury@gmail.com>
pythonGH-129866) (python#129868)

pythongh-64414: mention AF_INET6 and IPv6 in socketserver docs. (pythonGH-129866)

mention AF_INET6 and IPv6 in socketserver docs.
(cherry picked from commit 5ce70ad)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
…29727) (python#129864)

pythongh-129699: Add description to IDLE doc title (pythonGH-129727)

Also extend the 'idlelib' section header. These additions affect both the displayed idle.html file and the contents.html file displayed by clicking the Complete table of contents link on the main docs.python.org page. (The module index entries are generated from the module name and synopsis within module files.)
---------

(cherry picked from commit 33a7094)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
…129877) (python#129878)

Entry for patch to 3.13.rc3
(cherry picked from commit f72977b)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
pythonGH-129859) (python#129884)

pythongh-129873: IDLE: Improve help.py's method of parsing HTML (pythonGH-129859)

In `help.copy_strip`, only copy the text `<section>`.  In `help.HelpParser.handle_starttag` and elsewhere, remove code to skip the no longer present html.  Add a reminder at the top of idle.rst to run copy_strip after changes.
---------

(cherry picked from commit 6fbf15f)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
…phlib.py (pythonGH-129896) (python#129904)

pythongh-129892: Doc: Remove unnecessary role directive in graphlib.py (pythonGH-129896)

Change `:exec:ValueError` to `ValueError` in `TopologicalSorter.done()` docstring
(cherry picked from commit c537301)

Co-authored-by: Nikola Savic <76233425+nikolasavic3@users.noreply.github.com>
… FTS4 support (pythonGH-129913) (python#129918)

(cherry picked from commit cda83ca)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
…ython#129937)

(cherry picked from commit d9bf3c1)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
AA-Turner and others added 27 commits March 20, 2025 15:34
…urceTracker` upon deletion (pythonGH-130429) (python#131516)

pythongh-88887: Cleanup `multiprocessing.resource_tracker.ResourceTracker` upon deletion (pythonGH-130429)
(cherry picked from commit f53e7de)

Co-authored-by: luccabb <32229669+luccabb@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
…ist (pythonGH-131442) (python#131523)

pythongh-131441: Add a set of asserts to test.test_capi.test_list (pythonGH-131442)
(cherry picked from commit 2433cc7)

Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com>
…e constructor while owning resources (pythonGH-131462) (python#131518)

(cherry picked from commit ce79274)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
…ons (pythonGH-131547) (pythonGH-131557)

pythongh-131507: Refactor screen and cursor position calculations (pythonGH-131547)

This is based off pythonGH-131509.
(cherry picked from commit 4cc82ff)

Co-authored-by: Łukasz Langa <lukasz@langa.pl>
…ion (pythongh-131561) (python#131564)

The `sys_tracing_threads` variable should be read inside `LOCK_SETUP()`.
(cherry picked from commit 0de5e0c)

Co-authored-by: Sam Gross <colesbury@gmail.com>
…tures (pythonGH-131460) (python#131575)

pythongh-131457: Fix typo in BNF description of function signatures (pythonGH-131460)
(cherry picked from commit 8b7d20d)

Co-authored-by: Srinivas Reddy Thatiparthy (తాటిపర్తి శ్రీనివాస్  రెడ్డి) <thatiparthysreenivas@gmail.com>
…ytearray (pythonGH-131554) (python#131601)

pythongh-131357: Add a set of asserts to test.test_capi.test_bytearray (pythonGH-131554)

add a set of asserts to test.test_capi.test_bytearray

1. Assert empty bytearray object for PyByteArray_Check.
2. Assert empty bytearray object for PyByteArray_CheckExact.
3. Assert 0-size bytearray object for PyByteArray_Size.
4. Assert empty bytearray object for PyByteArray_AsString.
5. Assert concatenation of the bytearray object with itself for PyByteArray_Concat.
(cherry picked from commit f3bf304)

Co-authored-by: Nybblista <170842536+nybblista@users.noreply.github.com>
…lic methods (pythonGH-121530) (python#131623)

pythongh-121529: Document `from_` parameter in `_mboxMMDF` public methods (pythonGH-121530)
(cherry picked from commit 557d2d2)

Co-authored-by: Sebb <sebbASF@users.noreply.github.com>
…odule.c` (pythonGH-131420) (python#131620)

pythongh-131418: remove unused legacy typedefs in `{md5,sha1}module.c` (pythonGH-131420)

- Remove legacy typedefs `MD5_INT32` and `MD5_INT64` in `Modules/md5module.c`
- Remove legacy typedefs `SHA1_INT32` and `SHA1_INT64` in `Modules/sha1module.c`.

Those legacy typedefs were used to detect whether the host platform could
correctly implement MD5 and SHA-1, but this is no longer needed as we now
fallback to HACL* implementations.
(cherry picked from commit a9a399f)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
…ib.request` docs (pythonGH-130284) (python#131626)

pythongh-130283: update deprecated links and examples in `urllib.request` docs (pythonGH-130284)
(cherry picked from commit fd459b1)

Co-authored-by: Kanishk Pachauri <itskanishkp.py@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
… values (pythonGH-131053) (python#131167)

pythongh-131045: [Enum] fix flag containment checks when using values (pythonGH-131053)

Check would fail if value would create a pseudo-member, but that member
had not yet been created.  We now attempt to create a pseudo-member for
a passed-in value first.
(cherry picked from commit 17d06ae)

Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
…onGH-130588) (pythonGH-131465)

Co-authored-by: Blaise Pabon <blaise@gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
…ents` (python#131646) (python#131661)

pythongh-131645: fix ResourceWarnings in `test_asyncio.test_events` (python#131646)

(cherry picked from commit 71ce4ac)
…nc and raises (pythonGH-131682) (python#131686)

pythongh-131670: Fix crash in `anext()` when `__anext__` is sync and raises (pythonGH-131682)
(cherry picked from commit 929afd1)

Co-authored-by: sobolevn <mail@sobolevn.me>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
…131679) (pythongh-131692)

The call to `with self.subTest(...)` was not thread-safe.
(cherry picked from commit a123245)

Co-authored-by: Sam Gross <colesbury@gmail.com>
pythongh-131720) (pythongh-131722)

(cherry picked from commit 0a91456)

Co-authored-by: Tomasz Pytel <tompytel@gmail.com>
…s started from the command line (pythonGH-129901) (python#131734)

pythongh-129900: Fix `SystemExit` return codes when the REPL is started from the command line (pythonGH-129901)
(cherry picked from commit 90b82f2)

Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
…nGH-131748) (python#131760)

document that `sys._is_gil_enabled` is CPython-specific (pythonGH-131748)
(cherry picked from commit ac12de2)

Co-authored-by: Ralf Gommers <ralf.gommers@gmail.com>
…on change in `platform` (pythonGH-131742) (python#131767)

pythongh-131741: Add documentation for Windows version detection change in `platform` (pythonGH-131742)

Document the behavior change between 3.11 & 3.12, where ``platform`` now correctly detects Windows 11 and Windows Server releases past Windows Server 2012.
(cherry picked from commit b9ca438)

Co-authored-by: Idan Noiman <idann@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Co-authored-by: Wulian <1055917385@qq.com>
…nGH-131650) (python#131766)

(cherry picked from commit 2d83891)

Co-authored-by: Thomas Grainger <tagrain@gmail.com>
… perm … (pythongh-131754)

* [3.13] pythongh-131740: Update PyUnstable_GC_VisitObjects to traverse perm gen (pythongh-131744)

(cherry picked from commit 7bb41ae)

* fix
…->metadata' with a NULL value (pythonGH-131764) (python#131774)

pythongh-131762: Fixed dereferencing the pointer 'parser_token->metadata' with a NULL value (pythonGH-131764)
(cherry picked from commit 2c686a9)

Co-authored-by: rialbat <47256826+rialbat@users.noreply.github.com>
…onGH-131759) (python#131790)

pythongh-131712: Build _suggestions extension on Windows (pythonGH-131759)

Add a test checking that the '_suggestions' extension is available.
(cherry picked from commit 9ef9d68)

Co-authored-by: Victor Stinner <vstinner@python.org>
…31630)

Fix typo in importlib.metadata.rst (pythongh-131596)
(cherry picked from commit 5fc889f)

Co-authored-by: Zsolt Dollenstein <zsol.zsol@gmail.com>
…test_socket which still logs warnings, and internal test warnings that are now logged (python#128973)

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
(cherry picked from commit 8a00c9a)
@graingert graingert closed this Mar 27, 2025
@graingert graingert deleted the backport-8a00c9a-3.13 branch March 27, 2025 19:57
@graingert graingert restored the backport-8a00c9a-3.13 branch March 27, 2025 19:57
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.