From 332d38af5d83db53eefbebb8fbca3c777a74b9d3 Mon Sep 17 00:00:00 2001 From: Shahid Malik Date: Tue, 24 Mar 2026 10:58:29 +0000 Subject: [PATCH] Docs: add co_exceptiontable to code object documentation --- Doc/reference/datamodel.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 1e53c0e0e6f971..c22ae031d0914a 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1470,6 +1470,7 @@ indirectly) to mutable objects. single: co_cellvars (code object attribute) single: co_freevars (code object attribute) single: co_qualname (code object attribute) + single: co_exceptiontable (code object attribute) Special read-only attributes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1549,6 +1550,10 @@ Special read-only attributes - An :class:`integer ` encoding a number of flags for the interpreter. + * - .. attribute:: co_exceptiontable + - A bytes object representing the exception handling table used by the interpreter. + This attribute was introduced in Python 3.11. + .. index:: pair: object; generator The following flag bits are defined for :attr:`~codeobject.co_flags`: