Illustration of implementing __getattr__
and __setattr__
in a mix-in
class to provide introspection into parameters in derived classes.
parameterized.py
: Python module implementing a class representing parameters, a mix-in class adding parameter introspection capabilities to a derived class, and exception classes.parameter_introspection.ipynb
: Jupyter notebook illustrating the use of theParameterized
mix-in class.