[Python-Dev] Concerns about method overriding and subclassing with dataclasses (original) (raw)
Nathaniel Smith njs at pobox.com
Fri Dec 29 19:38:44 EST 2017
- 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 Fri, Dec 29, 2017 at 12:30 PM, Ethan Furman <ethan at stoneleaf.us> wrote:
Good point. So auto-generate a new repr if:
- one is not provided, and - existing repr is either: - object.repr, or - a previous dataclass repr And if the auto default doesn't work for one's use-case, use the keyword parameter to specify what you want.
What does attrs do here?
-n
-- Nathaniel J. Smith -- https://vorpus.org
- 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 ]