Undocumented
Class | cached_property |
Decorator that converts a method with a single self argument into a property cached on the instance. |
Class | classproperty |
Decorator that converts a method with a single cls argument into a property that can be accessed directly from the class. |
Function | keep_lazy |
No summary |
Function | keep_lazy_text |
A decorator for functions that accept lazy arguments and return text. |
Variable | empty |
Undocumented |
Class | LazyObject |
A wrapper for another class that can be used to delay instantiation of the wrapped class. |
Class | Promise |
Base class for the proxy class created in the closure of the lazy function. It's used to recognize promises in code. |
Class | SimpleLazyObject |
A lazy object initialized from any function. |
Function | _lazy_proxy_unpickle |
Undocumented |
Function | lazy |
No summary |
Function | lazystr |
Shortcut for the common case of a lazy callable that returns str. |
Function | new_method_proxy |
Undocumented |
Function | partition |
Split the values into two sets, based on the return value of the function (True/False). e.g.: |
Function | unpickle_lazyobject |
Used to unpickle lazy objects. Just return its argument, which will be the wrapped object. |