bronx.compat.functools

Compatibility for some of the features of the functools modules.

The cached_property decorator was introduced with Python3.8, this module provides a less sophisticated backport. Note: If bronx is running on Python 3.8+ the cached_property decorator from the standard library is used.

Classes

class bronx.compat.functools.cached_property(func)[source]

Bases: object

Call the function only once and cache its result.