Package horizons :: Package util :: Package python :: Module singleton :: Class ManualConstructionSingleton
[hide private]
[frames] | no frames]

Type ManualConstructionSingleton

source code

object --+        
         |        
      type --+    
             |    
     Singleton --+
                 |
                ManualConstructionSingleton

Same as Singleton, but Class() never creates an instance. Only create_instance() does.

Instance Methods [hide private]
 
__call__(self)
x(...)
source code
 
create_instance(self, *args, **kwargs) 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__

    Inherited from Singleton
the object's type
__init__(self, name, bases, dict)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
destroy_instance(self) 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]

__call__(self)
(Call operator)

source code 

x(...)

Overrides: type.__call__
(inherited documentation)