ametaclass
ametaclass copied to clipboard
Resources from a talk given at PyCon Australia.
It's Pythons all the way down
Python types & metaclasses made simple. (Har har)
References
- The Python Data Model describes pretty much everything, in great detail.
- Understanding Python Metaclasses was hugely useful, especially highlighting some important but subtle details.
- Change Python MRO at Runtime taught me an awesome hack for dynamically changing the MRO of a class.
- The abc Module Docs describes a custom metaclass in the core library.
- The Descriptor HowTo describes how descriptors work in a prosaic style.