| Trees | Indices | Help |
|
|---|
|
|
object --+
|
cache.mappings.Mapping --+
|
cache.mappings.MutableMapping --+
|
cache.mappings.UserDict --+
|
LazyItemsDict
A mapping object that behaves like a standard dict except that it allows for lazy initialization of values via callable objects. Lazy items can be overwritten and deleted just as normal items.
|
|||
| _LazyItem | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
| lazy_items | |||
|
Inherited from Inherited from |
|||
|
|||
x.__init__(...) initializes x; see help(type(x)) for signature
|
Add a lazy item for the given key. When the item is requested, value_callable will be called with *pargs and **kwargs arguments. |
|
|
|
|
|
This forces evaluation of each contained lazy item, and deepcopy of the result. A TypeError is raised if any contained lazy item is not a singleton, since it is not necessarily possible for the behavior of this type of item to be safely preserved. |
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu May 23 22:25:37 2013 | http://epydoc.sourceforge.net |