pylab_ml.common.singleton.Singleton
- class Singleton[source]
Bases:
typeCreate Singleton by inheriting from a metaclass
- Pros:
It’s a true class
Auto-magically covers inheritance
Uses __metaclass__ for its proper purpose (and made me aware of it)
- Cons:
It’s a bit more complex to understand
- __init__(*args, **kwargs)
Methods
__init__(*args, **kwargs)mro()Return a type's method resolution order.
- mro()
Return a type’s method resolution order.