Package mvpa :: Package base :: Class _SingletonType
[hide private]
[frames] | no frames]

Type _SingletonType

source code


Simple singleton implementation adjusted from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/412551
Instance Methods [hide private]
the object's type
__init__(mcs, *args)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__call__(mcs, sid, instance, *args)
x(...)
source code

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

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

Properties [hide private]

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

Inherited from object: __class__

Method Details [hide private]

__init__(mcs, *args)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Returns: the object's type
Overrides: object.__init__
(inherited documentation)

__call__(mcs, sid, instance, *args)
(Call operator)

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