Skip to content

Module 12 Overview

Module 12: Metaprogramming is where we enter the “Dark Arts” of Python. Metaprogramming is the act of writing code that manipulates code. It allows you to intercept class creation, modify attribute access at a low level, and even execute strings as code.

In this module, we will explore the machinery that builds Python classes and objects.

By the end of this module, you will be able to:

  • Understand what a Metaclass is and how it controls class creation.
  • Implement Descriptors to customize attribute access logic.
  • Safely (and dangerously) use Dynamic Execution tools like exec() and eval().