diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 1a9629449c971d1..fcc2dffb3928174 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -1558,6 +1558,16 @@ Special read-only attributes This attribute of code objects is deprecated, and may be removed in Python 3.15. + * - .. 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. Use :meth:`~codeobject.co_lines` and + :meth:`~codeobject.co_positions` for supported access to line and + position information. To create a modified copy of a code object, + use :meth:`~codeobject.replace`. + + .. versionadded:: 3.10 + * - .. attribute:: codeobject.co_stacksize - The required stack size of the code object