Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 20587:325d513a50bb 2.1
Backport fix from 2.277 - incorrectly swapped arguments to PyFrame_BlockSetup.
Fixes very obscure and nasty bug.
| author | Anthony Baxter <anthonybaxter@gmail.com> |
|---|---|
| date | Sun, 21 Oct 2001 05:57:28 +0000 |
| parents | 140cb246b864 |
| children | c7e833b3cd9c |
line wrap: on
line diff
--- a/Python/ceval.c Fri Oct 19 16:11:28 2001 +0000 +++ b/Python/ceval.c Sun Oct 21 05:57:28 2001 +0000 @@ -2196,8 +2196,8 @@ if (b->b_type == SETUP_LOOP && why == WHY_CONTINUE) { /* For a continue inside a try block, don't pop the block for the loop. */ - PyFrame_BlockSetup(f, b->b_type, b->b_level, - b->b_handler); + PyFrame_BlockSetup(f, b->b_type, b->b_handler, + b->b_level); why = WHY_NOT; JUMPTO(PyInt_AS_LONG(retval)); Py_DECREF(retval);
