Skip to content

Commit

Permalink
Two small corrections to docs for codeobject.co_lines()
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Jan 12, 2024
1 parent efa738e commit 4695ae0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1263,13 +1263,13 @@ Methods on code objects

* ``start`` (an :class:`int`) represents the offset (inclusive) of the start
of the :term:`bytecode` range
* ``end`` (an :class:`int`) represents the offset (inclusive) of the end of
* ``end`` (an :class:`int`) represents the offset (exclusive) of the end of
the :term:`bytecode` range
* ``lineno`` is an :class:`int` representing the line number of the
:term:`bytecode` range, or ``None`` if the bytecodes in the given range
have no line number

The items yielded generated will have the following properties:
The items yielded will have the following properties:

* The first range yielded will have a ``start`` of 0.
* The ``(start, end)`` ranges will be non-decreasing and consecutive. That
Expand Down

0 comments on commit 4695ae0

Please sign in to comment.