Package ganeti :: Module outils :: Class AutoSlots
[hide private]
[frames] | no frames]

Type AutoSlots

source code


Meta base class for __slots__ definitions.

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(mcs, name, bases, attrs)
Called when a class should be created.
source code

Inherited from type: __call__, __delattr__, __eq__, __ge__, __getattribute__, __gt__, __hash__, __init__, __instancecheck__, __le__, __lt__, __ne__, __repr__, __setattr__, __subclasscheck__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
_GetSlots(mcs, attrs)
Used to get the list of defined slots.
source code
Properties [hide private]

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

Inherited from object: __class__

Method Details [hide private]

__new__(mcs, name, bases, attrs)

source code 

Called when a class should be created.

Parameters:
  • mcs - The meta class
  • name - Name of created class
  • bases - Base classes
  • attrs (dict) - Class attributes
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

_GetSlots(mcs, attrs)
Class Method

source code 

Used to get the list of defined slots.

Parameters:
  • attrs - The attributes of the class