Explore the world of metaprogramming in Python through this comprehensive EuroPython 2014 conference talk. Begin with an introduction to metaprogramming concepts before delving into Python-specific techniques such as function and class decorators. Progress to advanced topics like metaclasses, demonstrating their power by implementing a simple Django-like model. Conclude with an exploration of macros, comparing their use in Lisp to Python implementations using the macropy library. Gain insights into when to use each metaprogramming technique and how they can enhance code flexibility and expressiveness.
Overview
Syllabus
Intro
We are hiring
Todays topics
Metaprogramming definition
Lisp pass
Macros
Macros vs decorators
Meta programming
decorators
metaclasses
jungle framework
field type
field implementation
solution
super
whispering
macropi
Taught by
EuroPython Conference