[issue37485] dataclass __foo__ methods inheritance is not working

2019-07-02 Thread Colin
Colin added the comment: I personally find it easier to understand if inheritance is the default behaviour, instead of having to explicitly disable a feature that's seems primarily designed for non-herited dataclasses. But whatever suits best the community :-) Thanks for the quick reply --

[issue37485] dataclass __foo__ methods inheritance is not working

2019-07-02 Thread Eric V. Smith
Eric V. Smith added the comment: I agree with xtreak that this works as designed and isn't a bug. -- assignee: -> eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue37485] dataclass __foo__ methods inheritance is not working

2019-07-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: https://docs.python.org/3/library/dataclasses.html#inheritance > When the dataclass is being created by the dataclass() decorator, it looks > through all of the class’s base classes in reverse MRO (that is, starting at > object) and, for each datacl

[issue37485] dataclass __foo__ methods inheritance is not working

2019-07-02 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37485] dataclass __foo__ methods inheritance is not working

2019-07-02 Thread Colin
New submission from Colin : Hi, When using inheritance with dataclass, "standard" instance methods that are provided with a default behavior thanks to dataclass are not overridable using inheritance. Please see the sample below (or the attached file): import dataclasses @dataclasses.datac