[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.133.4.2,2.133.4.3
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 05 Jul 2001 09:25:54 -0700
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv28656/Python
Modified Files:
Tag: descr-branch
pythonrun.c
Log Message:
Initialize PyType_Type() early in the game.
This fixes the problem Thomas Heller reported on python-dev.
Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.133.4.2
retrieving revision 2.133.4.3
diff -C2 -r2.133.4.2 -r2.133.4.3
*** pythonrun.c 2001/06/29 14:03:27 2.133.4.2
--- pythonrun.c 2001/07/05 16:25:52 2.133.4.3
***************
*** 115,118 ****
--- 115,121 ----
(void) PyThreadState_Swap(tstate);
+ if (PyType_InitDict(&PyType_Type) < 0)
+ Py_FatalError("Py_Initialize: can't initialize 'type'");
+
interp->modules = PyDict_New();
if (interp->modules == NULL)