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 @@ -1246,20 +1246,20 @@ Methods on code objects
1246
1246
1247
1247
* ``start `` (an :class: `int `) represents the offset (inclusive) of the start
1248
1248
of the :term: `bytecode ` range
1249
- * ``end `` (an :class: `int `) represents the offset (inclusive ) of the end of
1249
+ * ``end `` (an :class: `int `) represents the offset (exclusive ) of the end of
1250
1250
the :term: `bytecode ` range
1251
1251
* ``lineno `` is an :class: `int ` representing the line number of the
1252
1252
:term: `bytecode ` range, or ``None `` if the bytecodes in the given range
1253
1253
have no line number
1254
1254
1255
- The items yielded generated will have the following properties:
1255
+ The items yielded will have the following properties:
1256
1256
1257
1257
* The first range yielded will have a ``start `` of 0.
1258
1258
* The ``(start, end) `` ranges will be non-decreasing and consecutive. That
1259
1259
is, for any pair of :class: `tuple `\s , the ``start `` of the second will be
1260
1260
equal to the ``end `` of the first.
1261
1261
* No range will be backwards: ``end >= start `` for all triples.
1262
- * The :class: `tuple ` yielded will have ``end `` equal to the size of the
1262
+ * The last :class: `tuple ` yielded will have ``end `` equal to the size of the
1263
1263
:term: `bytecode `.
1264
1264
1265
1265
Zero-width ranges, where ``start == end ``, are allowed. Zero-width ranges
You can’t perform that action at this time.
0 commit comments