diff options
author | Mark Shannon <mark@hotpy.org> | 2021-05-07 15:19:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 15:19:19 +0100 |
commit | adcd2205565f91c6719f4141ab4e1da6d7086126 (patch) | |
tree | 0953b285944eccde57b05b8f3c7e30fb501a3d64 /Lib/test/test_code.py | |
parent | b32c8e97951db46484ba3b646b988bcdc4062199 (diff) | |
download | cpython-adcd2205565f91c6719f4141ab4e1da6d7086126.tar.gz cpython-adcd2205565f91c6719f4141ab4e1da6d7086126.zip |
bpo-40222: "Zero cost" exception handling (GH-25729)
"Zero cost" exception handling.
* Uses a lookup table to determine how to handle exceptions.
* Removes SETUP_FINALLY and POP_TOP block instructions, eliminating (most of) the runtime overhead of try statements.
* Reduces the size of the frame object by about 60%.
Diffstat (limited to 'Lib/test/test_code.py')
-rw-r--r-- | Lib/test/test_code.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_code.py b/Lib/test/test_code.py index 6aaf04ca6dd..c3dd678cd13 100644 --- a/Lib/test/test_code.py +++ b/Lib/test/test_code.py @@ -227,6 +227,7 @@ class CodeTest(unittest.TestCase): co.co_name, co.co_firstlineno, co.co_lnotab, + co.co_exceptiontable, co.co_freevars, co.co_cellvars) |