0 votes
in Python by
What are metaclasses and when are they used?

1 Answer

0 votes
by
Metaclasses are classes for classes. A metaclass can specify certain behaviour that is common for many classes for cases when inheritance will be too messy. One common metaclass is ABCMeta, which is used to create abstract classes.
...