From 9ecd3458713fffa64644db6540ac172070f3ceec Mon Sep 17 00:00:00 2001 From: cleverOrange Date: Wed, 25 Mar 2026 15:03:47 +0800 Subject: [PATCH] gh-146362: Document co_exceptiontable in code objects --- Doc/reference/datamodel.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 1e53c0e0e6f971..27d7d25bcd6d5b 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1545,6 +1545,11 @@ Special read-only attributes * - .. attribute:: codeobject.co_stacksize - The required stack size of the code object + * - .. attribute:: codeobject.co_exceptiontable + - A bytes object containing the exception handling table of the code object + + .. versionadded:: 3.11 + * - .. attribute:: codeobject.co_flags - An :class:`integer ` encoding a number of flags for the interpreter.