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

Module singleton

source code


Warning:
        A Singleton is to some extend the OOP-version of a global variable.
        The Singleton pattern has many downsides.
        Please make sure that this is really the best solution before using this code!

Classes [hide private]
  Singleton
Traditional Singleton design pattern.
  ManualConstructionSingleton
Same as Singleton, but Class() never creates an instance.
Variables [hide private]
  __package__ = 'horizons.util.python'