Wrapping method calls (meta-class example)


Category:
Scripts
Python
Requirements:
Seller:
Price:
-
System:
Rating:
4.6
License:

Description - Wrapping method calls (meta-class example)



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.



More in Python-Wrapping method calls (meta-class example)

Calls Meta Class Example Wrapping Method Calls