Skip to content Skip to sidebar Skip to footer

When Calling The Metaclass Bases, Object.__init__() Takes No Parameters

When I try to use this one approach of singleton: class Singleton(object): def __init__(self, name, bases, dict):

Solution 1:

Metaclasses derive from type, not object.


Post a Comment for "When Calling The Metaclass Bases, Object.__init__() Takes No Parameters"