[Python-Dev] Re: __init_subclass__ and metaclasses

2021年1月11日 17:50:04 -0800

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. 
;-)
But it does work.
--
~Ethan~
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/57NF3L53RJPJGUCSFIG7KPKYDLTCUCZL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to