Consider the decorator class CountCalls as in example in section Classes as decorators. Provide this class with
Fantastic news! We've Found the answer you've been seeking!
Question:
Consider the decorator class CountCalls as in example in section Classes as decorators. Provide this class with a method, reset, which sets the counters of all functions in the dictionary, CountCalls.instances, to zero. What would happen if the dictionary were replaced by an empty dictionary instead?
Posted Date: