File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -742,7 +742,7 @@ iterations of the loop.
742
742
743
743
This opcode performs several operations before a with block starts. First,
744
744
it loads :meth: `~object.__exit__ ` from the context manager and pushes it onto
745
- the stack for later use by :opcode: `WITH_CLEANUP_START `. Then,
745
+ the stack for later use by :opcode: `WITH_EXCEPT_START `. Then,
746
746
:meth: `~object.__enter__ ` is called, and a finally block pointing to *delta *
747
747
is pushed. Finally, the result of calling the ``__enter__() `` method is pushed onto
748
748
the stack. The next opcode will either ignore it (:opcode: `POP_TOP `), or
Original file line number Diff line number Diff line change @@ -898,8 +898,6 @@ compiler_next_instr(basicblock *b)
898
898
* 1 -- when jump
899
899
* -1 -- maximal
900
900
*/
901
- /* XXX Make the stack effect of WITH_CLEANUP_START and
902
- WITH_CLEANUP_FINISH deterministic. */
903
901
static int
904
902
stack_effect (int opcode , int oparg , int jump )
905
903
{
You can’t perform that action at this time.
0 commit comments