Intro to Metaclasses

Python Morsels Exercise Path

Want to learn about metaclasses by making your own? Try these 2 exercises out. These exercises aren't easy, but it's hard to find a realistic metaclass example that is easy.

If you don't know what metaclasses are, you probably don't need to know what they are. Unless you're implementing a framework for other people to write code with (like Django) you probably shouldn't even use this magic in your own code.

Exercises included