]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add dataclass field default change to 3.11 what's new (#96790)
authorLaurie O <laurie_opperman@hotmail.com>
Tue, 13 Sep 2022 15:56:08 +0000 (01:56 +1000)
committerGitHub <noreply@github.com>
Tue, 13 Sep 2022 15:56:08 +0000 (08:56 -0700)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Doc/whatsnew/3.11.rst

index 0f6490e6a7cbcd679198fbd7a79748d28c036993..e3580c5a36fbb4d0d87f6128cbb9c8ed9d79ae41 100644 (file)
@@ -523,6 +523,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
 --------