Skip to content

[pull] main from python:main - #351

Merged
pull[bot] merged 12 commits into
tj-python:mainfrom
python:main
Oct 15, 2025
Merged

pull[bot] merged 12 commits into
tj-python:mainfrom
python:main

Conversation

@pull

@pull pull Bot commented Oct 15, 2025 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )


📚 Documentation preview 📚: https://cpython-previews--351.org.readthedocs.build/

vstinner and others added 12 commits October 15, 2025 14:54
Co-authored-by: Antoine Pitrou <pitrou@free.fr>
Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
… are uniquely referenced (gh-140062)

The previous `Py_REFCNT(x) == 1` checks can have data races in the free
threaded build. `_PyObject_IsUniquelyReferenced(x)` is a more conservative
check that is safe in the free threaded build and is identical to
`Py_REFCNT(x) == 1` in the default GIL-enabled build.
…ng finalization (GH-140103)

This fixes a regression introduced by GH-136004, in which finalization would hang while executing atexit handlers if the system was out of memory.

---------

Signed-off-by: yihong0618 <zouzou0208@gmail.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
@pull pull Bot locked and limited conversation to collaborators Oct 15, 2025
@pull pull Bot added the ⤵️ pull label Oct 15, 2025
@pull
pull Bot merged commit bcced02 into tj-python:main Oct 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants