File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1839,15 +1839,15 @@ are always available. They are listed here in alphabetical order.
18391839 ``range(start, stop, step) ``. The *start * and *step * arguments default to
18401840 ``None ``.
18411841
1842+ Slice objects have read-only data attributes :attr: `!start `,
1843+ :attr: `!stop `, and :attr: `!step ` which merely return the argument
1844+ values (or their default). They have no other explicit functionality;
1845+ however, they are used by NumPy and other third-party packages.
1846+
18421847 .. attribute :: slice.start
18431848 .. attribute :: slice.stop
18441849 .. attribute :: slice.step
18451850
1846- Slice objects have read-only data attributes :attr: `!start `,
1847- :attr: `!stop `, and :attr: `!step ` which merely return the argument
1848- values (or their default). They have no other explicit functionality;
1849- however, they are used by NumPy and other third-party packages.
1850-
18511851 Slice objects are also generated when extended indexing syntax is used. For
18521852 example: ``a[start:stop:step] `` or ``a[start:stop, i] ``. See
18531853 :func: `itertools.islice ` for an alternate version that returns an
You can’t perform that action at this time.
0 commit comments