]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-84783: Document GH-101264 (Make the slice object hashable) in What's New. (#102548)
authorT. Wouters <thomas@python.org>
Thu, 9 Mar 2023 02:39:33 +0000 (18:39 -0800)
committerGitHub <noreply@github.com>
Thu, 9 Mar 2023 02:39:33 +0000 (18:39 -0800)
Doc/whatsnew/3.12.rst

index c0c021c679147f82895837ad2ef5a14e393013f7..d982cb62ec2f4e3db0b16774607e936ca0abb321 100644 (file)
@@ -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
 ===========