From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 13 Sep 2022 20:53:11 +0000 (-0700) Subject: Add dataclass field default change to 3.11 what's new (GH-96790) X-Git-Tag: v3.11.0~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e6f19b91608c52c7c58fea2a55ad305659e3376;p=thirdparty%2FPython%2Fcpython.git Add dataclass field default change to 3.11 what's new (GH-96790) Co-authored-by: Hugo van Kemenade (cherry picked from commit 4995f5f9a07921c5b90066a22285a538551b36d8) Co-authored-by: Laurie O --- diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst index 98eab505536c..2747eaeb4ecc 100644 --- a/Doc/whatsnew/3.11.rst +++ b/Doc/whatsnew/3.11.rst @@ -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 --------