From 58d761e5b5f253892a697941c71bac0159a1d74e Mon Sep 17 00:00:00 2001 From: "T. Wouters" Date: Wed, 8 Mar 2023 18:39:33 -0800 Subject: GH-84783: Document GH-101264 (Make the slice object hashable) in What's New. (#102548) --- Doc/whatsnew/3.12.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index c0c021c..d982cb6 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -189,6 +189,8 @@ Other Language Changes part of comprehensions (like ``a``) is still disallowed, as per :pep:`572`. (Contributed by Nikita Sobolev in :gh:`100581`.) +* :class:`slice` objects are now hashable, allowing them to be used as dict keys and + set items. (Contributed by Furkan Onder in :gh:`101264`.) New Modules =========== -- cgit v0.12