Run tests:
make test
descriptor_1.py: First high-level example illustrating the descriptor protocol.
Files for these examples are descriptors_methods_{1,2,3,4}.py, respectively
for:
__get____set____delete____set_name__
- An application of descriptors:
descriptors_pythonic_{1,2}.py - Different forms of implementing descriptors (
__dict__vs.weakref):descriptors_implementation_{1,2}.py
- Internals of descriptors:
descriptors_cpython_{1..3}.py. - Functions and methods:
descriptors_methods_{1..4}.py. __slots__@property,@classmethod, and@staticmethod.
- Reuse code
- Avoid class decorators:
descriptors_uses_{1,2}.py
