On 19/10/2023 19.50, Dom Grigonis wrote:
Thank you,
Good information, thank you. Was not aware of __set_name__.
IIRC that was one of the updates/improvements. Thanks to whomsoever...!
The:
instance.__dict__[self.name] = value
may require a bit of thought before it feels comfortable, but it is
significantly easier to understand than what we had to do 'before'.
Another surprise, and I've assumed you're asking in the context of
[Custom] Descriptors, is in how many places/functions Python makes use
of a descriptor/descriptor protocol. Yet few of us seem to make use of
them in our application code...
(YMMV!)
--
Regards,
=dn
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/KWIJS6L4DRI7333U2I2YYSXOJBKFCJQD/
Code of Conduct: http://python.org/psf/codeofconduct/