mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
- Rename PyType_InitDict() to PyType_Ready().
- Add an explicit call to PyType_Ready(&PyList_Type) to pythonrun.c (just for the heck of it, really -- we should either explicitly ready all types, or none).
This commit is contained in:
parent
c5943b1c8c
commit
528b7eb0b0
5 changed files with 16 additions and 13 deletions
|
@ -1160,7 +1160,7 @@ PyObject_GenericGetAttr(PyObject *obj, PyObject *name)
|
|||
PyObject **dictptr;
|
||||
|
||||
if (tp->tp_dict == NULL) {
|
||||
if (PyType_InitDict(tp) < 0)
|
||||
if (PyType_Ready(tp) < 0)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1207,7 +1207,7 @@ PyObject_GenericSetAttr(PyObject *obj, PyObject *name, PyObject *value)
|
|||
PyObject **dictptr;
|
||||
|
||||
if (tp->tp_dict == NULL) {
|
||||
if (PyType_InitDict(tp) < 0)
|
||||
if (PyType_Ready(tp) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue