FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-84783: Make the slice object hashable by furkanonder · Pull Request #101264 · python/cpython · GitHub

/ cpython Public
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
Prev Previous commit
Next Next commit
Update Doc/library/functions.rst
Co-authored-by: Owain Davies <116417456+OTheDev@users.noreply.github.com>
  • Loading branch information
furkanonder and OTheDev authored Feb 12, 2023
commit cff08ddc407f6e948a1e2ed4fc41d80f73ba48c5
4 changes: 3 additions & 1 deletion Doc/library/functions.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,9 @@ 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
.. versionchanged:: 3.12
Slice objects are now :term:`hashable` (provided :attr:`~slice.start`,
:attr:`~slice.stop`, and :attr:`~slice.step` are hashable).
The slice object can be :term:`hashable`.

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

Back | FazBrowse Home | New Git URL