Trees | Indices | Help |
|
---|
|
object --+ | CreateWhenNeeded
This class can be used like property() (i.e., it is a descriptor; see section 3.3.2.2 in the python reference). It will hold off on creating the object until it is needed, but once it has been created it will return the object directly.
It's best used for attributes that are expensive to calculate (as measured by profiling, of course) and not always used.
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Create the descriptor.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:45 2015 | http://epydoc.sourceforge.net |