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 /Include | |
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 'Include')
-rw-r--r-- | Include/opcode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/opcode.h b/Include/opcode.h index 420c87a..998a5ce 100644 --- a/Include/opcode.h +++ b/Include/opcode.h @@ -30,7 +30,6 @@ extern "C" { #define BINARY_TRUE_DIVIDE 27 #define INPLACE_FLOOR_DIVIDE 28 #define INPLACE_TRUE_DIVIDE 29 -#define RERAISE 48 #define WITH_EXCEPT_START 49 #define GET_AITER 50 #define GET_ANEXT 51 @@ -96,6 +95,7 @@ extern "C" { #define LOAD_GLOBAL 116 #define IS_OP 117 #define CONTAINS_OP 118 +#define RERAISE 119 #define JUMP_IF_NOT_EXC_MATCH 121 #define SETUP_FINALLY 122 #define LOAD_FAST 124 |