Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down
Loading