From: T. Wouters Date: Thu, 9 Mar 2023 02:39:33 +0000 (-0800) Subject: GH-84783: Document GH-101264 (Make the slice object hashable) in What's New. (#102548) X-Git-Tag: v3.12.0a7~223 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58d761e5b5f253892a697941c71bac0159a1d74e;p=thirdparty%2FPython%2Fcpython.git GH-84783: Document GH-101264 (Make the slice object hashable) in What's New. (#102548) --- diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index c0c021c67914..d982cb62ec2f 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 ===========