Top "Metaclass" questions

In object-oriented programming, a metaclass is a class whose instances are classes.

Ways to make a class immutable in Python

I'm doing some distributed computing in which several machines communicate under the assumption that they all have identical versions of …

python immutability metaclass
Inheritance of metaclass

In this well known answer that explains metaclass in Python. It mentions that the __metaclass__ attribute will not be inherited. …

python inheritance python-2.x metaclass
Adding base class to existing object in python

I have several objects of different kinds (different function names, different signatures) and I monkey patch them to have a …

python inheritance metaclass monkeypatching
What is the difference between type and type.__new__ in python?

I was writing a metaclass and accidentally did it like this: class MetaCls(type): def __new__(cls, name, bases, dict): …

python types new-operator metaclass