[Python-checkins] python/dist/src/Python ceval.c,2.393,2.394
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Wed Apr 7 10:38:11 EDT 2004
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12260
Modified Files:
ceval.c
Log Message:
Use continue instead of break whereever possible.
Index: ceval.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/ceval.c,v
retrieving revision 2.393
retrieving revision 2.394
diff -C2 -d -r2.393 -r2.394
*** ceval.c 7 Apr 2004 13:17:27 -0000 2.393
--- ceval.c 7 Apr 2004 14:38:08 -0000 2.394
***************
*** 1647,1651 ****
}
}
! break;
case END_FINALLY:
--- 1647,1651 ----
}
}
! continue;
case END_FINALLY:
***************
*** 1690,1693 ****
--- 1690,1694 ----
err = PyDict_SetItem(x, w, v);
Py_DECREF(v);
+ if (err == 0) continue;
break;
}
***************
*** 1720,1723 ****
--- 1721,1726 ----
PUSH(w);
}
+ Py_DECREF(v);
+ continue;
} else if (PyList_CheckExact(v) && PyList_GET_SIZE(v) == oparg) {
PyObject **items = ((PyListObject *)v)->ob_item;
***************
*** 1747,1750 ****
--- 1750,1754 ----
Py_DECREF(v);
Py_DECREF(u);
+ if (err == 0) continue;
break;
***************
*** 1762,1765 ****
--- 1766,1770 ----
err = PyDict_SetItem(f->f_globals, w, v);
Py_DECREF(v);
+ if (err == 0) continue;
break;
***************
*** 1836,1840 ****
Py_INCREF(x);
PUSH(x);
! break;
case DELETE_FAST:
--- 1841,1845 ----
Py_INCREF(x);
PUSH(x);
! continue;
case DELETE_FAST:
***************
*** 1855,1858 ****
--- 1860,1864 ----
Py_INCREF(x);
PUSH(x);
+ if (x != NULL) continue;
break;
More information about the Python-checkins
mailing list