8000 gh-128509: Add `sys._is_immortal` for identifying immortal objects by ZeroIntensity · Pull Request #128510 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-128509: Add sys._is_immortal for identifying immortal objects #128510

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

Merged
merged 20 commits into from
Jan 31, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change up wording.
  • Loading branch information
ZeroIntensity committed Jan 5, 2025
commit 45dc9e09946336c4e49f8e1dbad7e7a5ddd7c17c
5 changes: 3 additions & 2 deletions Doc/library/sys.rst
50DF
Original file line number Diff line number Diff line change
Expand Up @@ -857,8 +857,8 @@ always available.

.. impl-detail::

:term:`immortal` objects with a large reference count can be identified
with :func:`_is_immortal`.
:term:`Immortal <immortal>` objects with a large reference count can be identified
via :func:`_is_immortal`.

.. versionchanged:: 3.12
Immortal objects have very large refcounts that do not match
Expand Down Expand Up @@ -1283,6 +1283,7 @@ always available.

.. impl-detail::

This function should be used for specialized purposes only.
It is not guaranteed to exist in all implementations of Python.

.. function:: _is_interned(string)
Expand Down
0