Metaclass

> Procedural Languages > Python > Python - Data Type

1 - About

A metaclass is a class that create a class

The main purpose of a metaclass is to change the class automatically, when it's created.

The main use case for a metaclass is creating an API. See Python - Abstract Base Classes (ABCs)

2 - Documentation / Reference

Advertising