diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 2a961a062780f46..0880d2b54901ad3 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1489,6 +1489,7 @@ indirectly) to mutable objects. single: co_consts (code object attribute) single: co_filename (code object attribute) single: co_firstlineno (code object attribute) + single: co_linetable (code object attribute) single: co_flags (code object attribute) single: co_name (code object attribute) single: co_names (code object attribute) @@ -1562,6 +1563,16 @@ Special read-only attributes * - .. attribute:: codeobject.co_firstlineno - The line number of the first line of the function + * - .. attribute:: codeobject.co_linetable + - A :class:`bytes` object containing encoded source location information. + The exact format is an implementation detail and may change between + Python versions. It is made available to support the creation of new + code objects; use :meth:`~codeobject.co_lines` and + :meth:`~codeobject.co_positions` for supported access to line and + position information. + + .. versionadded:: 3.10 + * - .. attribute:: codeobject.co_stacksize - The required stack size of the code object