The goal of metaprogramming is to provide greater leverage b y writing code that modifies other code. This presentation introduces metap rogramming and shows examples using both decorators and metaclasses. Althou gh decorators are preferable because they are more straightforward, there are situations where metaclasses are still necessary; we'll look at these s pecial cases and visit some initialization issues along the way.


Comments are closed.