Package peppy :: Package lib :: Module userparams :: Class ClassPrefsMetaClass
[frames] | no frames]

Type ClassPrefsMetaClass

object --+    
         |    
      type --+
             |
            ClassPrefsMetaClass

Instance Methods
 
__init__(cls, name, bases, attributes)
Add prefs attribute to class attributes.

Inherited from type: __call__, __cmp__, __delattr__, __getattribute__, __hash__, __new__, __repr__, __setattr__, __subclasses__, mro

Inherited from object: __reduce__, __reduce_ex__, __str__

Properties

Inherited from type: __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __itemsize__, __mro__, __name__, __weakrefoffset__

Inherited from object: __class__

Method Details

__init__(cls, name, bases, attributes)
(Constructor)

 

Add prefs attribute to class attributes.

All classes of the created type will point to the same prefs object. Perhaps that's a 'duh', since prefs is a class attribute, but it is worth the reminder. Everything accessed through self.prefs changes the class prefs. Instance prefs are maintained by the class itself.

Overrides: object.__init__