[Python-checkins] CVS: python/dist/src/Modules xxsubtype.c,2.1,2.2

Guido van Rossum gvanrossum@users.sourceforge.net
2001年8月07日 10:24:30 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv12129/Modules
Modified Files:
	xxsubtype.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: xxsubtype.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/xxsubtype.c,v
retrieving revision 2.1
retrieving revision 2.2
diff -C2 -d -r2.1 -r2.2
*** xxsubtype.c	2001年08月02日 04:15:00	2.1
--- xxsubtype.c	2001年08月07日 17:24:28	2.2
***************
*** 213,219 ****
 		return;
 
! 	if (PyType_InitDict(&spamlist_type) < 0)
 		return;
! 	if (PyType_InitDict(&spamdict_type) < 0)
 		return;
 
--- 213,219 ----
 		return;
 
! 	if (PyType_Ready(&spamlist_type) < 0)
 		return;
! 	if (PyType_Ready(&spamdict_type) < 0)
 		return;
 

AltStyle によって変換されたページ (->オリジナル) /