gh-133260: Remove claim that PyUnicode_InternFromString immortalizes (GH-134213)

This commit is contained in:
Petr Viktorin 2025-05-29 15:36:59 +02:00 committed by GitHub
parent cafbcd666a
commit 4109a9c6b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1726,10 +1726,6 @@ They all return ``NULL`` or ``-1`` if an exception occurs.
from user input, prefer calling :c:func:`PyUnicode_FromString` and
:c:func:`PyUnicode_InternInPlace` directly.
.. impl-detail::
Strings interned this way are made :term:`immortal`.
.. c:function:: unsigned int PyUnicode_CHECK_INTERNED(PyObject *str)