pylab_ml.common.singleton.Singleton

class Singleton[source]

Bases: type

Create 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

Are there any?

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

mro()

Return a type's method resolution order.

mro()

Return a type’s method resolution order.