6.5. foundations.decorators

decorators.py

Platform:
Windows, Linux, Mac Os X.
Description:
This module defines Foundations package generic decorators objects.

Others:

6.5.1. Module Attributes

foundations.decorators.LOGGER

6.5.2. Functions

foundations.decorators.executionTime(object)[source]
This decorator is used for execution timing.
Any method / definition decorated will have it’s execution timed through information messages.
Parameters:object – Object to decorate. ( Object )
Returns:Object. ( Object )
foundations.decorators.memoize(cache=None)[source]
This decorator is used for method / definition memoization.
Any method / definition decorated will get its return value cached and restored whenever called with the same arguments.
Parameters:cache – Alternate cache. ( Dictionary )
Returns:Object. ( Object )

Table Of Contents

Previous topic

6.4. foundations.dataStructures

Next topic

6.6. foundations.environment

This Page