]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Backport fix from 2.277 - incorrectly swapped arguments to PyFrame_BlockSetup.
authorAnthony Baxter <anthonybaxter@gmail.com>
Sun, 21 Oct 2001 05:57:28 +0000 (05:57 +0000)
committerAnthony Baxter <anthonybaxter@gmail.com>
Sun, 21 Oct 2001 05:57:28 +0000 (05:57 +0000)
Fixes very obscure and nasty bug.

Python/ceval.c

index 690c6535724970f7e1361338635faddf8f88dec9..ccab1585679b13a39a260e3382f71acc3ff33bbf 100644 (file)
@@ -2196,8 +2196,8 @@ eval_code2(PyCodeObject *co, PyObject *globals, PyObject *locals,
                        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);