Publisher review:Wrapping method calls (meta-class example) script uses a metaclass to wrap all methods for logging purposes. A metaclass is used to wrap all (or just some) methods for logging purposes. The underlying mechanism can be used as well to check pre/post conditions, attribute access,... The basic point is, that the actual class must not be changed in any way to achive the desired effect.
Wrapping method calls (meta-class example) is a Python script for Programming Methods and Algorithms scripts design by Stephan Diehl.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
uses a metaclass to wrap all methods for logging purposes.
Operating system:Windows / Linux / Mac OS / BSD / Solaris