Day 9: Your Functions Can Be Rewritten — Decorators & Runtime Behavior

You think a function is fixed once defined. It is not. In Python, functions are objects—and can be modified at runtime. Today, you understand how decorators actually work under the hood. Today’s Goal By the end of today, you will: Understand how decorators work internally Learn function wrapping Understand closures Use decorators for real-world patterns The Illusion def greet(): print("hello") You think: greet is just a function Reality: greet is an object that can be passed, modified, and replaced ...

May 1, 2026 · 2 min · Nitin S Kulkarni