[Python-Dev] Should the dataclass frozen property apply to subclasses?

Ethan Furman ethan at stoneleaf.us
Mon Feb 26 13:51:12 EST 2018


On 02/26/2018 05:40 AM, Eric V. Smith wrote:

> As long as I'm saving if a dataclass is frozen, I should save all of the dataclass parameters on the class. Since it's
> per-class, it's not a lot of overhead.

That's what Enum does.  A bit of pain, but makes so many other things easier.

--
~Ethan~



More information about the Python-Dev mailing list