pymel.util.utilitytypes.propertycache¶
digraph inheritanceb60199fb14 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "propertycache" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.util.utilitytypes.propertycache",style="setlinewidth(0.5)",tooltip="Class for creating properties where the value is initially calculated then stored.",height=0.25,shape=box,fontsize=8]; }
- class propertycache(func)¶
Class for creating properties where the value is initially calculated then stored.
Intended for use as a descriptor, ie:
- class MyClass(object):
@propertycache def aValue(self):
return calcValue()
c = MyClass() c.aValue