Skip to content

Commit fc93bd4

Browse files
mr-nfamouszhangyangyu
authored andcommitted
Change tp_size to tp_basicsize in comment and realign the comments (GH-6775)
1 parent 698865d commit fc93bd4

File tree

1 file changed

+38
-38
lines changed

1 file changed

+38
-38
lines changed

Objects/unicodeobject.c

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -15061,46 +15061,46 @@ static PyObject *unicode_iter(PyObject *seq);
1506115061

1506215062
PyTypeObject PyUnicode_Type = {
1506315063
PyVarObject_HEAD_INIT(&PyType_Type, 0)
15064-
"str", /* tp_name */
15065-
sizeof(PyUnicodeObject), /* tp_size */
15066-
0, /* tp_itemsize */
15064+
"str", /* tp_name */
15065+
sizeof(PyUnicodeObject), /* tp_basicsize */
15066+
0, /* tp_itemsize */
1506715067
/* Slots */
15068-
(destructor)unicode_dealloc, /* tp_dealloc */
15069-
0, /* tp_print */
15070-
0, /* tp_getattr */
15071-
0, /* tp_setattr */
15072-
0, /* tp_reserved */
15073-
unicode_repr, /* tp_repr */
15074-
&unicode_as_number, /* tp_as_number */
15075-
&unicode_as_sequence, /* tp_as_sequence */
15076-
&unicode_as_mapping, /* tp_as_mapping */
15077-
(hashfunc) unicode_hash, /* tp_hash*/
15078-
0, /* tp_call*/
15079-
(reprfunc) unicode_str, /* tp_str */
15080-
PyObject_GenericGetAttr, /* tp_getattro */
15081-
0, /* tp_setattro */
15082-
0, /* tp_as_buffer */
15068+
(destructor)unicode_dealloc, /* tp_dealloc */
15069+
0, /* tp_print */
15070+
0, /* tp_getattr */
15071+
0, /* tp_setattr */
15072+
0, /* tp_reserved */
15073+
unicode_repr, /* tp_repr */
15074+
&unicode_as_number, /* tp_as_number */
15075+
&unicode_as_sequence, /* tp_as_sequence */
15076+
&unicode_as_mapping, /* tp_as_mapping */
15077+
(hashfunc) unicode_hash, /* tp_hash*/
15078+
0, /* tp_call*/
15079+
(reprfunc) unicode_str, /* tp_str */
15080+
PyObject_GenericGetAttr, /* tp_getattro */
15081+
0, /* tp_setattro */
15082+
0, /* tp_as_buffer */
1508315083
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE |
15084-
Py_TPFLAGS_UNICODE_SUBCLASS, /* tp_flags */
15085-
unicode_doc, /* tp_doc */
15086-
0, /* tp_traverse */
15087-
0, /* tp_clear */
15088-
PyUnicode_RichCompare, /* tp_richcompare */
15089-
0, /* tp_weaklistoffset */
15090-
unicode_iter, /* tp_iter */
15091-
0, /* tp_iternext */
15092-
unicode_methods, /* tp_methods */
15093-
0, /* tp_members */
15094-
0, /* tp_getset */
15095-
&PyBaseObject_Type, /* tp_base */
15096-
0, /* tp_dict */
15097-
0, /* tp_descr_get */
15098-
0, /* tp_descr_set */
15099-
0, /* tp_dictoffset */
15100-
0, /* tp_init */
15101-
0, /* tp_alloc */
15102-
unicode_new, /* tp_new */
15103-
PyObject_Del, /* tp_free */
15084+
Py_TPFLAGS_UNICODE_SUBCLASS, /* tp_flags */
15085+
unicode_doc, /* tp_doc */
15086+
0, /* tp_traverse */
15087+
0, /* tp_clear */
15088+
PyUnicode_RichCompare, /* tp_richcompare */
15089+
0, /* tp_weaklistoffset */
15090+
unicode_iter, /* tp_iter */
15091+
0, /* tp_iternext */
15092+
unicode_methods, /* tp_methods */
15093+
0, /* tp_members */
15094+
0, /* tp_getset */
15095+
&PyBaseObject_Type, /* tp_base */
15096+
0, /* tp_dict */
15097+
0, /* tp_descr_get */
15098+
0, /* tp_descr_set */
15099+
0, /* tp_dictoffset */
15100+
0, /* tp_init */
15101+
0, /* tp_alloc */
15102+
unicode_new, /* tp_new */
15103+
PyObject_Del, /* tp_free */
1510415104
};
1510515105

1510615106
/* Initialize the Unicode implementation */

0 commit comments

Comments
 (0)