macpie.util.MethodHistory#
- class macpie.util.MethodHistory(method)#
Decorator for class methods for tracking history of class instance modifications.
When a class method is decorated with
@MethodHistory
, each time that method is invoked, a record will be added to the class instance’s_method_history
attribute. The record will include before and after information using the instance’sto_dict()
method, as well as useful information like the method signature used in the invocation and duration of the method call.- __init__(method)#
Methods
__init__
(method)