@@ -956,38 +956,37 @@ sys_intern_impl(PyObject *module, PyObject *s)
956956}
957957
958958/*[clinic input]
959- sys._is_immortal -> bool
959+ sys._is_interned -> bool
960960
961- op: object
961+ string: unicode
962962 /
963963
964- Return True if the given object is "immortal" per PEP 683 .
964+ Return True if the given string is "interned" .
965965[clinic start generated code]*/
966966
967967static int
968- sys__is_immortal_impl (PyObject * module , PyObject * op )
969- /*[clinic end generated code: output=c2f5d6a80efb8d1a input=83733fc356c78475 ]*/
968+ sys__is_interned_impl (PyObject * module , PyObject * string )
969+ /*[clinic end generated code: output=c3678267b4e9d7ed input=039843e17883b606 ]*/
970970{
971- return _Py_IsImmortal ( op );
971+ return PyUnicode_CHECK_INTERNED ( string );
972972}
973973
974974/*[clinic input]
975- sys._is_interned -> bool
975+ sys._is_immortal -> bool
976976
977- string: unicode
977+ op: object
978978 /
979979
980- Return True if the given string is "interned" .
980+ Return True if the given object is "immortal" per PEP 683 .
981981[clinic start generated code]*/
982982
983983static int
984- sys__is_interned_impl (PyObject * module , PyObject * string )
985- /*[clinic end generated code: output=c3678267b4e9d7ed input=039843e17883b606 ]*/
984+ sys__is_immortal_impl (PyObject * module , PyObject * op )
985+ /*[clinic end generated code: output=c2f5d6a80efb8d1a input=83733fc356c78475 ]*/
986986{
987- return PyUnicode_CHECK_INTERNED ( string );
987+ return _Py_IsImmortal ( op );
988988}
989989
990-
991990/*
992991 * Cached interned string objects used for calling the profile and
993992 * trace functions.
0 commit comments