Closed shirinyamani closed 2 years ago
A new example block of
cache
has been added. It includes the purecache
decorator followed by thefactorial
function as an example of it! Later, another decorator@timer
has provided to examine the ability of the former decorator with respect to the elapsed time of the function! it can also be a good sample for using several decorators on a single function. In the end, a little description is provided in regards tocache
andlru_cache
potential usage in Python versions.
Thanks Shirin. The new examples are great.
A new example block of
cache
has been added. It includes the purecache
decorator followed by thefactorial
function as an example of it! Later, another decorator@timer
has provided to examine the ability of the former decorator with respect to the elapsed time of the function! it can also be a good sample for using several decorators on a single function. In the end, a little description is provided in regards tocache
andlru_cache
potential usage in Python versions.