[Python-checkins] python/dist/src/Objects dictobject.c,2.156,2.157
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Fri Mar 19 05:30:02 EST 2004
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23751
Modified Files:
dictobject.c
Log Message:
Factor out a double lookup.
Index: dictobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/dictobject.c,v
retrieving revision 2.156
retrieving revision 2.157
diff -C2 -d -r2.156 -r2.157
*** dictobject.c 18 Mar 2004 08:38:00 -0000 2.156
--- dictobject.c 19 Mar 2004 10:30:00 -0000 2.157
***************
*** 1007,1013 ****
mask = mp->ma_mask;
for (i = 0, j = 0; i <= mask; i++) {
! if (ep[i].me_value != NULL) {
key = ep[i].me_key;
- value = ep[i].me_value;
item = PyList_GET_ITEM(v, j);
Py_INCREF(key);
--- 1007,1012 ----
mask = mp->ma_mask;
for (i = 0, j = 0; i <= mask; i++) {
! if ((value=ep[i].me_value) != NULL) {
key = ep[i].me_key;
item = PyList_GET_ITEM(v, j);
Py_INCREF(key);
More information about the Python-checkins
mailing list