Package rubacon :: Package utility :: Module Singleton :: Class Singleton
[hide private]
[frames] | no frames]

Class Singleton

source code


The implementation of a singleton

Instance Methods [hide private]

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, *args, **kwargs)
make it a singleton
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kwargs)
Static Method

source code 

make it a singleton

Returns: a new object with type S, a subtype of T
Overrides: object.__new__