Skip to content

Commit 332d38a

Browse files
committed
Docs: add co_exceptiontable to code object documentation
1 parent 95340ef commit 332d38a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Doc/reference/datamodel.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,6 +1470,7 @@ indirectly) to mutable objects.
14701470
single: co_cellvars (code object attribute)
14711471
single: co_freevars (code object attribute)
14721472
single: co_qualname (code object attribute)
1473+
single: co_exceptiontable (code object attribute)
14731474

14741475
Special read-only attributes
14751476
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1549,6 +1550,10 @@ Special read-only attributes
15491550
- An :class:`integer <int>` encoding a number of flags for the
15501551
interpreter.
15511552

1553+
* - .. attribute:: co_exceptiontable
1554+
- A bytes object representing the exception handling table used by the interpreter.
1555+
This attribute was introduced in Python 3.11.
1556+
15521557
.. index:: pair: object; generator
15531558

15541559
The following flag bits are defined for :attr:`~codeobject.co_flags`:

0 commit comments

Comments
 (0)