mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Renamed PyString to PyBytes
This commit is contained in:
parent
9c4756ea26
commit
72b710a596
78 changed files with 983 additions and 983 deletions
|
@ -3462,8 +3462,8 @@ inherit_special(PyTypeObject *type, PyTypeObject *base)
|
|||
type->tp_flags |= Py_TPFLAGS_TYPE_SUBCLASS;
|
||||
else if (PyType_IsSubtype(base, &PyLong_Type))
|
||||
type->tp_flags |= Py_TPFLAGS_LONG_SUBCLASS;
|
||||
else if (PyType_IsSubtype(base, &PyString_Type))
|
||||
type->tp_flags |= Py_TPFLAGS_STRING_SUBCLASS;
|
||||
else if (PyType_IsSubtype(base, &PyBytes_Type))
|
||||
type->tp_flags |= Py_TPFLAGS_BYTES_SUBCLASS;
|
||||
else if (PyType_IsSubtype(base, &PyUnicode_Type))
|
||||
type->tp_flags |= Py_TPFLAGS_UNICODE_SUBCLASS;
|
||||
else if (PyType_IsSubtype(base, &PyTuple_Type))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue