summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-07 17:24:28 +0000
committerGuido van Rossum <guido@python.org>2001-08-07 17:24:28 +0000
commitc392517f6953cfb7cc84250f8de0b2fe5fe571e4 (patch)
tree5f6456b5ba9e325c743a21111923b790d7d0ac0f /Python/pythonrun.c
parent61dddc2c48b1a9ae093f37393a9601515cfb0d3f (diff)
downloadcpython-c392517f6953cfb7cc84250f8de0b2fe5fe571e4.tar.gz
- 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/pythonrun.c')
-rw-r--r--Python/pythonrun.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index e6162305f4..cf2c777556 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");