Re:Data Classification: Does Python still have a need for cl...
by glyph on Tuesday February 14, 2023 @08:25PM
(#34798834)
why do you think you can't define `__aenter__` and `__aexit__` on a dataclass?
Re:Data Classification: Does Python still have a need for cl...
by seanhunter on Wednesday February 15, 2023 @04:30AM
(#34801705)
I don't. But it's really not a dataclass - it doesn't need slots etc.
I love dataclasses, but there needs to be a compelling reason to break everyone's code and the reason can't just be "I don't want one import and one decorator".