Tsallaka zuwa abun ciki
Justice Tech School

Metaclasses and Class HooksPremium

A class is an object made by a metaclass, usually type. Most needs are met by __init_subclass__, which runs whenever a subclass is created, or by class decorators. Reach for metaclasses only as a last resort.

This is a Premium lesson

All the basic lessons are free. Advanced and in-depth lessons, with every example, exercise and quiz, are included with a Premium subscription.

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.