[Python-3000-checkins] r53652 - python/branches/p3yk/Objects/iterobject.c

martin.v.loewis python-3000-checkins at python.org
Tue Feb 6 22:31:00 CET 2007


Author: martin.v.loewis
Date: Tue Feb  6 22:30:59 2007
New Revision: 53652

Modified:
   python/branches/p3yk/Objects/iterobject.c
Log:
Remove bogus INCREF of ziptuple: it is a
freshly-allocated tuple object.


Modified: python/branches/p3yk/Objects/iterobject.c
==============================================================================
--- python/branches/p3yk/Objects/iterobject.c	(original)
+++ python/branches/p3yk/Objects/iterobject.c	Tue Feb  6 22:30:59 2007
@@ -302,7 +302,6 @@
 
 	zipiter->result = (PyTupleObject*) result;
         zipiter->resultsize = tuplesize;
-	Py_INCREF(ziptuple);
 	zipiter->it_tuple = (PyTupleObject *) ziptuple;
 	_PyObject_GC_TRACK(zipiter);
 	return (PyObject *)zipiter;


More information about the Python-3000-checkins mailing list