This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author CCLDArjun
Recipients CCLDArjun, eric.smith, gianni
Date 2021-07-23.21:28:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627075706.77.0.684166847943.issue44674@roundup.psfhosted.org>
In-reply-to
Content
Which frozendict does your message concern? I found this in some test: https://github.com/python/cpython/blob/bb3e0c240bc60fe08d332ff5955d54197f79751c/Lib/test/test_builtin.py#L741 or are you suggesting any user defined immutable object?

I'm not sure indicating that an object should be immutable to dataclasses will be less cumbersome than default_factory.

Currently, you have to do this:
> x: frozendict = field(default_factory=frozendict)

But, indicating mutability would be something like this:
> x: frozendict = field(mutable=false)
History
Date User Action Args
2021-07-23 21:28:26CCLDArjunsetrecipients: + CCLDArjun, eric.smith, gianni
2021-07-23 21:28:26CCLDArjunsetmessageid: <1627075706.77.0.684166847943.issue44674@roundup.psfhosted.org>
2021-07-23 21:28:26CCLDArjunlinkissue44674 messages
2021-07-23 21:28:26CCLDArjuncreate