We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d46a91 commit b1715f1Copy full SHA for b1715f1
1 file changed
Python/ceval.c
@@ -2537,14 +2537,14 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
2537
v = SECOND();
2538
w = THIRD();
2539
tp = FOURTH();
2540
- exc = stack_pointer[-5];
2541
- tb = stack_pointer[-6];
2542
- exit_func = stack_pointer[-7];
2543
- stack_pointer[-7] = tb;
2544
- stack_pointer[-6] = exc;
2545
- stack_pointer[-5] = tp;
+ exc = PEEK(5);
+ tb = PEEK(6);
+ exit_func = PEEK(7);
+ SET_VALUE(7, tb);
+ SET_VALUE(6, exc);
+ SET_VALUE(5, tp);
2546
/* UNWIND_EXCEPT_BLOCK will pop this off. */
2547
- FOURTH() = NULL;
+ SET_FOURTH(NULL);
2548
/* We just shifted the stack down, so we have
2549
to tell the except handler block that the
2550
values are lower than it expects. */
0 commit comments