Skip to content

Commit 7c4a026

Browse files
committed
Document pythonGH-101264 (Make the slice object hashable) in What's New.
1 parent cbb0aa7 commit 7c4a026

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Doc/whatsnew/3.12.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ Other Language Changes
189189
part of comprehensions (like ``a``) is still disallowed, as per :pep:`572`.
190190
(Contributed by Nikita Sobolev in :gh:`100581`.)
191191

192+
* :class:`slice` objects are now hashable, allowing them to be used as dict keys and
193+
set items.
192194

193195
New Modules
194196
===========

0 commit comments

Comments
 (0)