Anand Chitipothu

Anand Chitipothu

Audience level:
10:30 a.m.–11:15 a.m.

Decorators Demystified


Decorators are heavily used in modern python libraries and web frameworks. But they are still mystery to many people. In this talk I plan to discuss the concept of decorators in depth.


Have you ever written a decorator? What about a decorator function that takes arguments? In this talk talk we'll discuss the concept of decorators in depth using many examples.


  • What are decorators
  • Why are they used?
  • Functions in detail
    • Functions are first class objects
    • Functions as arguments
    • Built-in functions that take functions as arguments
    • Closures and functions as return value
    • varargs and kwargs
  • Decorators
  • Decorator Examples
  • Decorators that take arguments
  • Decorator Patterns
  • Example: Tiny web framework
  • Questions

Platinum Sponsors:

Silver Sponsors: