summaryrefslogtreecommitdiffstats
path: root/Doc/library/dis.rst
diff options
context:
space:
mode:
authorMark Shannon <mark@hotpy.org>2020-12-17 13:55:28 (GMT)
committerGitHub <noreply@github.com>2020-12-17 13:55:28 (GMT)
commitbf353f3c2d937772a8cf30b15fd8eb7b82665ccb (patch)
tree9196732769c1cca2bd01a44e668fe4c5fb29f7d7 /Doc/library/dis.rst
parent40125ab3252453bf205ed906e46bf9741c27bf9d (diff)
downloadcpython-bf353f3c2d937772a8cf30b15fd8eb7b82665ccb.zip
cpython-bf353f3c2d937772a8cf30b15fd8eb7b82665ccb.tar.gz
cpython-bf353f3c2d937772a8cf30b15fd8eb7b82665ccb.tar.bz2
bpo-42246: Make sure that `f_lasti`, and thus `f_lineno`, is set correctly after raising or reraising an exception (GH-23803)
* Ensure that f_lasti is set correctly after an exception is raised to conform to PEP 626. * Update importlib * Add NEWS.
Diffstat (limited to 'Doc/library/dis.rst')
-rw-r--r--Doc/library/dis.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/dis.rst b/Doc/library/dis.rst
index ec64d3d..c09d833 100644
--- a/Doc/library/dis.rst
+++ b/Doc/library/dis.rst
@@ -708,7 +708,8 @@ iterations of the loop.
.. opcode:: RERAISE
- Re-raises the exception currently on top of the stack.
+ Re-raises the exception currently on top of the stack. If oparg is non-zero,
+ restores ``f_lasti`` of the current frame to its value when the exception was raised.
.. versionadded:: 3.9