Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Swap sentence order
  • Loading branch information
rhettinger committed May 26, 2024
commit c581a383168dfadbbd927c04e56dfb57b14d91cc
6 changes: 3 additions & 3 deletions Doc/library/itertools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ loops that truncate the stream.
If *stop* is ``None``, iteration continues until the iterator is
exhausted, if at all. Otherwise, it stops at the specified position.

Elements are returned consecutively unless *step* is set higher than one
which results in items being skipped. If *step* is ``None``, the step
defaults to one.
If *step* is ``None``, the step defaults to one. Elements are returned
consecutively unless *step* is set higher than one which results in
items being skipped.

Roughly equivalent to::

Expand Down