[Python-checkins] python/dist/src/Objects listobject.c,2.163,2.164
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Sat Nov 8 06:35:25 EST 2003
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1:/tmp/cvs-serv17187
Modified Files:
listobject.c
Log Message:
Minor code fixup. Make sure that len reflects the current list size.
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.163
retrieving revision 2.164
diff -C2 -d -r2.163 -r2.164
*** listobject.c 7 Nov 2003 15:38:09 -0000 2.163
--- listobject.c 8 Nov 2003 11:35:22 -0000 2.164
***************
*** 1969,1972 ****
--- 1969,1973 ----
if (keyfunc != NULL) {
+ len = PyList_GET_SIZE(self);
for (i=0 ; i < len ; i++) {
kvpair = PyList_GET_ITEM(self, i);
More information about the Python-checkins
mailing list