diff options
author | Mark Shannon <mark@hotpy.org> | 2020-12-17 13:55:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-17 13:55:28 (GMT) |
commit | bf353f3c2d937772a8cf30b15fd8eb7b82665ccb (patch) | |
tree | 9196732769c1cca2bd01a44e668fe4c5fb29f7d7 /Python/opcode_targets.h | |
parent | 40125ab3252453bf205ed906e46bf9741c27bf9d (diff) | |
download | cpython-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 'Python/opcode_targets.h')
-rw-r--r-- | Python/opcode_targets.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/opcode_targets.h b/Python/opcode_targets.h index 538fdbe..8495871 100644 --- a/Python/opcode_targets.h +++ b/Python/opcode_targets.h @@ -47,7 +47,7 @@ static void *opcode_targets[256] = { &&_unknown_opcode, &&_unknown_opcode, &&_unknown_opcode, - &&TARGET_RERAISE, + &&_unknown_opcode, &&TARGET_WITH_EXCEPT_START, &&TARGET_GET_AITER, &&TARGET_GET_ANEXT, @@ -118,7 +118,7 @@ static void *opcode_targets[256] = { &&TARGET_LOAD_GLOBAL, &&TARGET_IS_OP, &&TARGET_CONTAINS_OP, - &&_unknown_opcode, + &&TARGET_RERAISE, &&_unknown_opcode, &&TARGET_JUMP_IF_NOT_EXC_MATCH, &&TARGET_SETUP_FINALLY, |