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
Add version changed to slice's doc
  • Loading branch information
furkanonder committed Feb 11, 2023
commit 159f3f2115cc88ba4ea7915c95b14ff839e8e4f6
2 changes: 2 additions & 0 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,8 @@ are always available. They are listed here in alphabetical order.
example: ``a[start:stop:step]`` or ``a[start:stop, i]``. See
:func:`itertools.islice` for an alternate version that returns an iterator.

.. versionchanged:: 3.10
The slice object can be :term:`hashable`.

.. function:: sorted(iterable, /, *, key=None, reverse=False)

Expand Down