buildingmotif.building_motif.singleton#

Classes

Singleton(name, bases, cls_dict)

Metaclass that makes a class into a singleton.

Exceptions

SingletonNotInstantiatedException

Raised when a singelton is accessed without being initialized.

class Singleton(name, bases, cls_dict)[source]#

Metaclass that makes a class into a singleton.

exception SingletonNotInstantiatedException[source]#

Raised when a singelton is accessed without being initialized.