summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/slice.rst
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2023-06-21 20:13:25 (GMT)
committerGitHub <noreply@github.com>2023-06-21 20:13:25 (GMT)
commita2392720d6108041d17960a86514ba859b436f05 (patch)
tree414f6f4a851a4defe92f8fbeaed836d0a55a3876 /Doc/c-api/slice.rst
parent4328dc646517f9251bdf6c827014f01c5229e8d9 (diff)
downloadcpython-a2392720d6108041d17960a86514ba859b436f05.zip
cpython-a2392720d6108041d17960a86514ba859b436f05.tar.gz
cpython-a2392720d6108041d17960a86514ba859b436f05.tar.bz2
gh-84436: update docs on Py_None/Py_True/Py_False/Py_Ellipsis becoming immortal (#105195)
Diffstat (limited to 'Doc/c-api/slice.rst')
-rw-r--r--Doc/c-api/slice.rst9
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/c-api/slice.rst b/Doc/c-api/slice.rst
index 33169cc..c54a659 100644
--- a/Doc/c-api/slice.rst
+++ b/Doc/c-api/slice.rst
@@ -118,6 +118,9 @@ Ellipsis Object
.. c:var:: PyObject *Py_Ellipsis
- The Python ``Ellipsis`` object. This object has no methods. It needs to be
- treated just like any other object with respect to reference counts. Like
- :c:data:`Py_None` it is a singleton object.
+ The Python ``Ellipsis`` object. This object has no methods. Like
+ :c:data:`Py_None`, it is an `immortal <https://peps.python.org/pep-0683/>`_.
+ singleton object.
+
+ .. versionchanged:: 3.12
+ :c:data:`Py_Ellipsis` is immortal.