[Python-checkins] CVS: python/dist/src/Python ceval.c,2.294,2.295
Guido van Rossum
gvanrossum@users.sourceforge.net
Thu, 06 Dec 2001 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);