[Python-Dev] Concerns about method overriding and subclassing with dataclasses
Eric V. Smith
eric at trueblade.com
Sun Jan 7 12:09:30 EST 2018
On 1/3/2018 1:17 PM, Eric V. Smith wrote:
> I’ll open an issue after I have time to read this thread and comment on it.
I need to think though how __eq__ and __ne__ work, as well as the
My specific concern with __ne__ is that there's one flag to control
their generation, but python will use "not __eq__" if you don't provide
__ne__. I need to think through what happens if the user only provides
__eq__: does dataclasses do nothing, does it add __ne__, and how does
this interact with a base class that does provide __ne__.
More information about the Python-Dev