pymel.core.datatypes.metaReadOnlyAttr

digraph inheritancee4c161e858 { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "metaReadOnlyAttr" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.utilitytypes/pymel.util.utilitytypes.metaReadOnlyAttr.html#pymel.util.utilitytypes.metaReadOnlyAttr",style="setlinewidth(0.5)",tooltip="A metaclass to allow to define read-only class attributes, accessible either on the class or it's instances",height=0.25,shape=box,fontsize=8]; }

class metaReadOnlyAttr

A metaclass to allow to define read-only class attributes, accessible either on the class or it’s instances and protected against re-write or re-definition. Read only attributes are stored in the class ‘__readonly__’ dictionary. Any attribute can be marked as read only by including its name in a tuple named ‘__readonly__’ in the class definition. Alternatively methods can be marked as read only with the @readonly decorator and will then get added to the dictionary at class creation

__setattr__(name, value)

overload __setattr__ to forbid modification of read only class info