The Pocoo Project

We create awesome Python libraries and applications


Karnickel is a small library that allows you to use macros (similar to those found in Lisp) in Python code, using the AST modification and compilation feature found in Python 2.6. In a nutshell, macros allow you to insert code (the macro definition) at a different point in the code (the macro call). It is different from calling functions in that the code is inserted before it is even compiled.