Inspired by David Beazley'S tutorial Python 3 Metaprogramming presented at PyCon'13, March 14, 2013. Santa Clara, California.
- How many functionalities will the Metaclass have?
- Propagation due to inheritance
- decorator to fulfill specialized needs
While debugging, print
or logging
function everywhere.
Use decorator to debug func and class decorator to debug all instance method. Example Link
Boilerplate code to assign attribute while init a class.
Use Signature
from the standard library inspect
to build signature for function.
Example Link