[Python-checkins] CVS: python/dist/src/Python ceval.c,2.294,2.295

Guido van Rossum gvanrossum@users.sourceforge.net
2001年12月06日 06:09:58 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv1170
Modified Files:
	ceval.c 
Log Message:
Fix a typo (probably caused by autocompletion <blush>) that caused a
leak when a class defined a __metaclass__. This fixes the problem
reported on python-dev by Ping; I dunno if it's the same as SF bug
#489669 (since that mentions Unicode).
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.294
retrieving revision 2.295
diff -C2 -d -r2.294 -r2.295
*** ceval.c	2001年12月06日 06:23:26	2.294
--- ceval.c	2001年12月06日 14:09:56	2.295
***************
*** 3555,3559 ****
 		metaclass = PyDict_GetItemString(methods, "__metaclass__");
 	if (metaclass != NULL)
! 		Py_INCREF(methods);
 	else if (PyTuple_Check(bases) && PyTuple_GET_SIZE(bases) > 0) {
 		base = PyTuple_GET_ITEM(bases, 0);
--- 3555,3559 ----
 		metaclass = PyDict_GetItemString(methods, "__metaclass__");
 	if (metaclass != NULL)
! 		Py_INCREF(metaclass);
 	else if (PyTuple_Check(bases) && PyTuple_GET_SIZE(bases) > 0) {
 		base = PyTuple_GET_ITEM(bases, 0);

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