summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2021-12-08 09:41:28 (GMT)
committerGitHub <noreply@github.com>2021-12-08 09:41:28 (GMT)
commit7989e9dff68fd681657aa9f93ac6e8fa12c534e4 (patch)
treebf4e7ec1d51c46ea52ddde1df0f4b24f6b73e8fe /Doc
parent4ccccb1cfc1f30327e76a2d845cc274be56b34b1 (diff)
downloadcpython-7989e9dff68fd681657aa9f93ac6e8fa12c534e4.zip
cpython-7989e9dff68fd681657aa9f93ac6e8fa12c534e4.tar.gz
cpython-7989e9dff68fd681657aa9f93ac6e8fa12c534e4.tar.bz2
bpo-40222: update doc entry with respect to the change in WITH_EXCEPT_START (GH-29975)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/dis.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index 6fe64be..62d2150 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -584,12 +584,14 @@ iterations of the loop.
.. opcode:: WITH_EXCEPT_START
- Calls the function in position 7 on the stack with the top three
+ Calls the function in position 8 on the stack with the top three
items on the stack as arguments.
Used to implement the call ``context_manager.__exit__(*exc_info())`` when an exception
has occurred in a :keyword:`with` statement.
.. versionadded:: 3.9
+ .. versionchanged:: 3.11
+ The ``__exit__`` function is in position 8 of the stack rather than 7.
.. opcode:: POP_EXCEPT_AND_RERAISE