Package aterm :: Module factory :: Class _Singleton
[frames] | no frames]

Type _Singleton




Metaclass for the Singleton design pattern. Based on http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/102187

Instance Methods
 
__init__(mcs, name, bases, dic)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__call__(mcs, *args, **kargs)
x(...)

Inherited from type: __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__(mcs, name, bases, dic)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__call__(mcs, *args, **kargs)
(Call operator)

 
x(...)
Overrides: type.__call__
(inherited documentation)