mirror of
https://github.com/python/cpython
synced 2026-09-29 08:25:30 +03: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
|
|
@ -212,9 +212,9 @@ initxxsubtype(void)
|
|||
if (m == NULL)
|
||||
return;
|
||||
|
||||
if (PyType_InitDict(&spamlist_type) < 0)
|
||||
if (PyType_Ready(&spamlist_type) < 0)
|
||||
return;
|
||||
if (PyType_InitDict(&spamdict_type) < 0)
|
||||
if (PyType_Ready(&spamdict_type) < 0)
|
||||
return;
|
||||
|
||||
d = PyModule_GetDict(m);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue