8000 [3.13] Docs: Fix indentation in `slice` class of `functions.rst` (GH-… · python/cpython@335d7da · GitHub
[go: up one dir, main page]

Skip to content

Commit 335d7da

Browse files
[3.13] Docs: Fix indentation in slice class of functions.rst (GH-134393) (GH-135949)
Docs: Fix indentation in `slice` class of `functions.rst` (GH-134393) Paragraph should not be under `slice.step`. It applies to the whole class. (cherry picked from commit 6227662) Co-authored-by: Rob Reynolds <13379223+reynoldsnlp@users.noreply.github.com>
1 parent c64df2a commit 335d7da

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
@@ -1827,15 +1827,15 @@ are always available. They are listed here in alphabetical order.
18271827
``range(start, stop, step)``. The *start* and *step* arguments default to
18281828
``None``.
18291829

1830+
Slice objects have read-only data attributes :attr:`!start`,
1831+
:attr:`!stop`, and :attr:`!step` which merely return the argument
1832+
values (or their default). They have no other explicit functionality;
1833+
however, they are used by NumPy and other third-party packages.
1834+
18301835
.. attribute:: slice.start
18311836
.. attribute:: slice.stop
18321837
.. attribute:: slice.step
18331838

1834-
Slice objects have read-only data attributes :attr:`!start`,
1835-
:attr:`!stop`, and :attr:`!step` which merely return the argument
1836-
values (or their default). They have no other explicit functionality;
1837-
however, they are used by NumPy and other third-party packages.
1838-
18391839
Slice objects are also generated when extended indexing syntax is used. For
18401840
example: ``a[start:stop:step]`` or ``a[start:stop, i]``. See
18411841
:func:`itertools.islice` for an alternate version that returns an

0 commit comments

Comments
 (0)
0