[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.140,2.141

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 07 Aug 2001 10:24:31 -0700


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv12129/Python

Modified Files:
	pythonrun.c 
Log Message:
- 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).



Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.140
retrieving revision 2.141
diff -C2 -d -r2.140 -r2.141
*** pythonrun.c	2001/08/02 04:15:00	2.140
--- pythonrun.c	2001/08/07 17:24:28	2.141
***************
*** 116,121 ****
  	(void) PyThreadState_Swap(tstate);
  
! 	if (PyType_InitDict(&PyType_Type) < 0)
  		Py_FatalError("Py_Initialize: can't initialize 'type'");
  
  	interp->modules = PyDict_New();
--- 116,124 ----
  	(void) PyThreadState_Swap(tstate);
  
! 	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();