mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Rename 'unicode' to 'str' in its tp_name field. Rename 'str' to 'str8'.
Change all occurrences of unichr to chr.
This commit is contained in:
parent
ef87d6ed94
commit
84fc66dd02
17 changed files with 45 additions and 66 deletions
|
@ -4009,7 +4009,7 @@ static PyObject *str_iter(PyObject *seq);
|
|||
PyTypeObject PyString_Type = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
0,
|
||||
"str",
|
||||
"str8",
|
||||
sizeof(PyStringObject),
|
||||
sizeof(char),
|
||||
string_dealloc, /* tp_dealloc */
|
||||
|
|
|
@ -7954,7 +7954,7 @@ static PyObject *unicode_iter(PyObject *seq);
|
|||
PyTypeObject PyUnicode_Type = {
|
||||
PyObject_HEAD_INIT(&PyType_Type)
|
||||
0, /* ob_size */
|
||||
"unicode", /* tp_name */
|
||||
"str", /* tp_name */
|
||||
sizeof(PyUnicodeObject), /* tp_size */
|
||||
0, /* tp_itemsize */
|
||||
/* Slots */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue