six-python

Python Metaclass : Understanding the 'with_metaclass()'

Python Metaclass : Understanding the 'with_metaclass()' Question: I want to ask what the with_metaclass() call means in the definition of a class. E.g.: class Foo(with_metaclass(Cls1, Cls2)): Is it a special case where a class inherits from a metaclass? Is the new class a metaclass, too? Asked By: Zakos || Source Answers: with_metaclass() is a utility …

Total answers: 2