summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-07 17:24:28 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-07 17:24:28 (GMT)
commit528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c (patch)
tree7cceb95854e84eb61468b749c168f870a1d4dc2a /Modules
parentc5943b1c8c49e235efd6e6b4c7fbfb4952c28fd0 (diff)
downloadcpython-528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c.zip
cpython-528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c.tar.gz
cpython-528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c.tar.bz2
- 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).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/xxsubtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/xxsubtype.c b/Modules/xxsubtype.c
index 60d8c7d..5b8e254 100644
--- a/Modules/xxsubtype.c
+++ b/Modules/xxsubtype.c
@@ -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);