Friday, April 17, 2009  MetaPython 0.2 Release  For those
intrepid souls who are interested in generating Python code from
the macros and code quoting facilities of MetaPython, I have
spun a new release. If you aren't familiar with MetaPython, a
good place to start is the tutorial, which walks you through the
construction of a macro for generating a macro-ized version of
collections.namedtuple from the Python 2.6 standard library. If
you are already familiar with MetaPython, I will try to
summarize the changes and ideas in this release here.
MetaPython 0.1 was mainly a proof of concept implementation to
show that it was possible to generate a moderately useful macro
facility in a short period of time. I did, however, make one
really questionable decision: to use Jinja2 as the templating
language for code quotes.  Don't get me wrong; Jinja2 is an
awesome templating language. But if I am generating a language
extension (MetaPython) that allows you to change the text of a
module as just before it gets imported,