From adcd2205565f91c6719f4141ab4e1da6d7086126 Mon Sep 17 00:00:00 2001 From: Mark Shannon Date: Fri, 7 May 2021 15:19:19 +0100 Subject: 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%. --- Lib/test/test_code.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/test/test_code.py') 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) -- cgit v1.2.3