Skip to content

Commit 7989e9d

Browse files
authored
bpo-40222: update doc entry with respect to the change in WITH_EXCEPT_START (GH-29975)
1 parent 4ccccb1 commit 7989e9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Doc/library/dis.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,12 +584,14 @@ iterations of the loop.
584584

585585
.. opcode:: WITH_EXCEPT_START
586586

587-
Calls the function in position 7 on the stack with the top three
587+
Calls the function in position 8 on the stack with the top three
588588
items on the stack as arguments.
589589
Used to implement the call ``context_manager.__exit__(*exc_info())`` when an exception
590590
has occurred in a :keyword:`with` statement.
591591

592592
.. versionadded:: 3.9
593+
.. versionchanged:: 3.11
594+
The ``__exit__`` function is in position 8 of the stack rather than 7.
593595

594596

595597
.. opcode:: POP_EXCEPT_AND_RERAISE

0 commit comments

Comments
 (0)