[Python-Dev] descriptor set_name and dataclasses (original) (raw)
Eric V. Smith eric at trueblade.com
Mon Mar 26 11:17:33 EDT 2018
- Previous message (by thread): [Python-Dev] descriptor __set_name__ and dataclasses
- Next message (by thread): [Python-Dev] descriptor __set_name__ and dataclasses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 3/26/18 11:10 AM, Eric V. Smith wrote:
On 3/26/18 11:08 AM, Nick Coghlan wrote:
On 27 March 2018 at 00:40, Eric V. Smith <eric at trueblade.com> wrote:
Would it be feasible to define
Field._setname_
, and have that calldefault._setname_
when the latter exists, and be a no-op otherwise? A clever idea! I'll look in to it.
It looks like that does work. Thank, Nick!
Eric
- Previous message (by thread): [Python-Dev] descriptor __set_name__ and dataclasses
- Next message (by thread): [Python-Dev] descriptor __set_name__ and dataclasses
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]