diff Python/pythonrun.c @ 19040:4df72ea78ae8 legacy-trunk

- 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).
author Guido van Rossum <guido@python.org>
date Tue, 07 Aug 2001 17:24:28 +0000
parents 09df3254b49d
children de5d7a9428ef
line wrap: on
line diff
--- a/Python/pythonrun.c	Tue Aug 07 17:19:25 2001 +0000
+++ b/Python/pythonrun.c	Tue Aug 07 17:24:28 2001 +0000
@@ -115,9 +115,12 @@
 		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");