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.
1839
1839
``range(start, stop, step) ``. The *start * and *step * arguments default to
1840
1840
``None ``.
1841
1841
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
+
1842
1847
.. attribute :: slice.start
1843
1848
.. attribute :: slice.stop
1844
1849
.. attribute :: slice.step
1845
1850
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
-
1851
1851
Slice objects are also generated when extended indexing syntax is used. For
1852
1852
example: ``a[start:stop:step] `` or ``a[start:stop, i] ``. See
1853
1853
:func: `itertools.islice ` for an alternate version that returns an
You can’t perform that action at this time.
0 commit comments