On Tue, 12 Jan 2021, 11:55 am Ethan Furman, <et...@stoneleaf.us> wrote:

> On 1/7/21 4:56 AM, Nick Coghlan wrote:
>
>  > Both EnumMeta and ABCMeta should probably be relying on `__set_name__`
>  > for their per-member set up work these days, rather than deferring
>  > that work until after __new__ returns.
>
> And here I was thinking that `__set_name__` was for, well, setting the
> name.  ;-)
>


Yeah, __set_owner__ was also discussed as a possible name, since the method
notifies the descriptor of both the defining class and the attribute name
within that class.

We decided we preferred __set_name__ out of the two short options.



> But it does work.
>

Good to hear :)

Cheers,
Nick.



>
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/RY7FBQFJ4T64CYILI5B3BOL2KYX65X62/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to