https://github.com/python/cpython/commit/48bb23020511067a19cf4d7d26dbca1983a7bab5 commit: 48bb23020511067a19cf4d7d26dbca1983a7bab5 branch: 3.14 author: Petr Viktorin <[email protected]> committer: encukou <[email protected]> date: 2026-09-23T14:59:30+02:00 summary:
[3.14] gh-137528: Document the co_linetable code object attribute (GH-151425) (GH-157946) (cherry picked from commit c4447105ab82f55de45d9a675873e815a8b81357) Co-authored-by: Harjoth Khara <[email protected]> files: M Doc/reference/datamodel.rst 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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
