]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add dataclass field default change to 3.11 what's new (GH-96790)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Sep 2022 20:53:11 +0000 (13:53 -0700)
committerPablo Galindo <pablogsal@gmail.com>
Sat, 22 Oct 2022 19:06:15 +0000 (20:06 +0100)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
(cherry picked from commit 4995f5f9a07921c5b90066a22285a538551b36d8)

Co-authored-by: Laurie O <laurie_opperman@hotmail.com>
Doc/whatsnew/3.11.rst

index 98eab505536cd9ea61d73e2c89245718f7749144..2747eaeb4ecc5c800e0062fdc1a869bb6fc22c52 100644 (file)
@@ -610,6 +610,14 @@ Added non parallel-safe :func:`~contextlib.chdir` context manager to change
 the current working directory and then restore it on exit. Simple wrapper
 around :func:`~os.chdir`. (Contributed by Filipe LaĆ­ns in :issue:`25625`)
 
+dataclasses
+-----------
+
+* Change field default mutability check, allowing only defaults which are
+  :term:`hashable` instead of any object which is not an instance of
+  :class:`dict`, :class:`list` or :class:`set`. (Contributed by Eric V. Smith in
+  :issue:`44674`.)
+
 datetime
 --------