Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6227662

Browse files
authored
Docs: Fix indentation in slice class of functions.rst (GH-134393)
Paragraph should not be under `slice.step`. It applies to the whole class. --------- Co-authored-by: Rob Reynolds <[email protected]>
1 parent cbfaf41 commit 6227662

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/functions.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)