MHN
Add a comment on Hacker News →
1 of 98 comments
  1. Tangential, but if all you want is inline code generation from Python and not a full preprocessor, you can use the excellent cog from Ned Batchelder:

    http://nedbatchelder.com/code/cog#h_what_does_it_do