7.1.3.7. Singleton¶
Implement Singleton
-
class
BookBrowser.Common.Singleton.
SingletonMetaClass
(class_name, super_classes, class_attribute_dict)[source]¶ Bases:
type
A singleton metaclass.
This implementation supports subclassing and is thread safe.
-
class
BookBrowser.Common.Singleton.
monostate
[source]¶ Bases:
object
A monostate base class.
-
static
__new__
(cls, *args, **kwargs)[source]¶ Create and return a new object. See help(type) for accurate signature.
-
static