About Utils

About a part of utils

class pybs.utils.miscellaneous.memoized(func)[source]

Decorator. Caches a function’s return value.

If called later with the same arguments, the cached value is returned (not reevaluated).

pybs.utils.miscellaneous.memoized2(func)[source]

Slightly different memoization.

Does not confuse autodoc the way other decorators do.