gh-130790: Remove references about unicode's readiness from comments (#130801)

This commit is contained in:
Sergey Miryanov 2025-03-04 00:18:09 +05:00 committed by GitHub
parent 8a64a62002
commit 3a7f17c7e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 9 additions and 28 deletions

View file

@ -49,7 +49,6 @@ class object "PyObject *" "&PyBaseObject_Type"
((Py_ssize_t)(name)) >> 3)
#define MCACHE_CACHEABLE_NAME(name) \
PyUnicode_CheckExact(name) && \
PyUnicode_IS_READY(name) && \
(PyUnicode_GET_LENGTH(name) <= MCACHE_MAX_ATTR_SIZE)
#define NEXT_GLOBAL_VERSION_TAG _PyRuntime.types.next_version_tag

View file

@ -15952,7 +15952,6 @@ _PyUnicode_ClearInterned(PyInterpreterState *interp)
Py_ssize_t pos = 0;
PyObject *s, *ignored_value;
while (PyDict_Next(interned, &pos, &s, &ignored_value)) {
assert(PyUnicode_IS_READY(s));
int shared = 0;
switch (PyUnicode_CHECK_INTERNED(s)) {
case SSTATE_INTERNED_IMMORTAL: