I am looking for a pure Python implementation of the property builtin to understand how initialization works. I have found many that deal with the descriptor interface (__get__, __set__) but none describing the setter or deleter methods. Is this definition in the Python Decorator Library (roughly) the way it is implemented?
I am looking for a pure Python implementation of the property builtin to understand
Share
Property is a simple, straightforward descriptor. Descriptor protocol consists of three methods:
__get__,__set__and__delete__. Property for each of those operations simply calls user-provided functions.