Hi, I thought this was nice: http://pyside.blogspot.com/2008/03/ast-compilation-from-python.html We might think about allowing prefilter to do such transformations in ipython1. Cheers, Brian