File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1263,20 +1263,20 @@ Methods on code objects
1263
1263
1264
1264
* ``start `` (an :class: `int `) represents the offset (inclusive) of the start
1265
1265
of the :term: `bytecode ` range
1266
- * ``end `` (an :class: `int `) represents the offset (inclusive ) of the end of
1266
+ * ``end `` (an :class: `int `) represents the offset (exclusive ) of the end of
1267
1267
the :term: `bytecode ` range
1268
1268
* ``lineno `` is an :class: `int ` representing the line number of the
1269
1269
:term: `bytecode ` range, or ``None `` if the bytecodes in the given range
1270
1270
have no line number
1271
1271
1272
- The items yielded generated will have the following properties:
1272
+ The items yielded will have the following properties:
1273
1273
1274
1274
* The first range yielded will have a ``start `` of 0.
1275
1275
* The ``(start, end) `` ranges will be non-decreasing and consecutive. That
1276
1276
is, for any pair of :class: `tuple `\s , the ``start `` of the second will be
1277
1277
equal to the ``end `` of the first.
1278
1278
* No range will be backwards: ``end >= start `` for all triples.
1279
- * The :class: `tuple ` yielded will have ``end `` equal to the size of the
1279
+ * The last :class: `tuple ` yielded will have ``end `` equal to the size of the
1280
1280
:term: `bytecode `.
1281
1281
1282
1282
Zero-width ranges, where ``start == end ``, are allowed. Zero-width ranges
You can’t perform that action at this time.
0 commit comments