[Python-Dev] Concerns about method overriding and subclassing with dataclasses (original) (raw)
Eric V. Smith eric at trueblade.com
Sun Jan 7 12:09:30 EST 2018
- Previous message (by thread): [Python-Dev] Concerns about method overriding and subclassing with dataclasses
- Next message (by thread): [Python-Dev] Concerns about method overriding and subclassing with dataclasses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
https://bugs.python.org/issue32513 I need to think though how eq and ne work, as well as the ordering operators.
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.
Eric.
- Previous message (by thread): [Python-Dev] Concerns about method overriding and subclassing with dataclasses
- Next message (by thread): [Python-Dev] Concerns about method overriding and subclassing with dataclasses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]