Skip to content

Details

Classes are syntactic constructs that define types and are colloquially used interchangeably with 'class' The distinction is important because the syntactic definition of a class can remain the same while changing the behavior of the type it defines. This is done through metaclasses, a powerful method of defining behavior of python class objects.

Metaclasses are classes whose instances are classes. A programmer can define a metaclass and inject custom behavior for a class. Join PySTL as we explore ways to use (and abuse) metaclasses for fun and profit.

Related topics

You may also like