Metaclasses are using three arguments, a name, the bases and a “dict”.
The two first are classes.
It allows the possibility to add properties and methods to an instance, i.e a class. It’s a class of a class if you prefer.
Note: Commissions may be earned from the links above.
This page contains references to products from one or more of our advertisers. We may receive compensation when you click on links to those products. For an explanation of our advertising policy, please visit this page.