diff options
author | Guido van Rossum <guido@python.org> | 2001-08-07 17:24:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-08-07 17:24:28 (GMT) |
commit | 528b7eb0b0fa5a6bbbf5f3dfbfb7c356edaf031c (patch) | |
tree | 7cceb95854e84eb61468b749c168f870a1d4dc2a /Python | |
parent | c5943b1c8c49e235efd6e6b4c7fbfb4952c28fd0 (diff) | |
download | cpython-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 'Python')
-rw-r--r-- | Python/pythonrun.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index e616230..cf2c777 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -115,9 +115,12 @@ Py_Initialize(void) Py_FatalError("Py_Initialize: can't make first thread"); (void) PyThreadState_Swap(tstate); - if (PyType_InitDict(&PyType_Type) < 0) + if (PyType_Ready(&PyType_Type) < 0) Py_FatalError("Py_Initialize: can't initialize 'type'"); + if (PyType_Ready(&PyList_Type) < 0) + Py_FatalError("Py_Initialize: can't initialize 'list'"); + interp->modules = PyDict_New(); if (interp->modules == NULL) Py_FatalError("Py_Initialize: can't make modules dictionary"); |