mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-130790: Remove references about unicode's readiness from comments (#130801)
This commit is contained in:
parent
8a64a62002
commit
3a7f17c7e2
11 changed files with 9 additions and 28 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue