From 7c4a0263bbeda378c97b738dfae33ec3f9fe1caf Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Wed, 8 Mar 2023 21:47:12 +0000 Subject: [PATCH 1/2] Document GH-101264 (Make the slice object hashable) in What's New. --- 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 c0c021c679147f..1baf580d537555 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. New Modules =========== From 72a22cb9e585f7ea8da704946992366b4aa85532 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Thu, 9 Mar 2023 01:22:40 +0000 Subject: [PATCH 2/2] Give credit for the change. --- Doc/whatsnew/3.12.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.12.rst b/Doc/whatsnew/3.12.rst index 1baf580d537555..d982cb62ec2f4e 100644 --- a/Doc/whatsnew/3.12.rst +++ b/Doc/whatsnew/3.12.rst @@ -190,7 +190,7 @@ Other Language Changes (Contributed by Nikita Sobolev in :gh:`100581`.) * :class:`slice` objects are now hashable, allowing them to be used as dict keys and - set items. + set items. (Contributed by Furkan Onder in :gh:`101264`.) New Modules ===========