[Python-ideas] Re: Make dataclass aware that it might be used with Enum

2022-07-09 Thread Steve Jorgensen
Ethan Furman wrote: > On 7/7/22 09:01, Steve Jorgensen wrote: > > Actually, maybe these are fundamentally incompatible? > > Their intended use seems fundamentally incompatible: > - dataclass was designed for making many mutable records (hundreds, > thousands, or more) > - enum was designed to make

[Python-ideas] Dataclasses for complex models, A proposal for datatrees,

2022-07-09 Thread gianni
I'm new to this forum, any advice for a newbie is welcome. I have found datatrees particularly useful in generating hierarchical 3D models of shape classes with a large number of parameters. Copious parameters is evidently inevitable with 3D modelling. I've had a few people suggest pulling it out

[Python-ideas] Re: Make dataclass aware that it might be used with Enum

2022-07-09 Thread Steve Jorgensen
I don't think that dataclasses have the limited set of intended uses that you are interpreting them as having. To me, the fact that they can be frozen makes them a good fit with Enum. ___ Python-ideas mailing list -- python-ideas@python.org To unsubscri