
Oct. 19, 2023
12:27 a.m.
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