Idea for pure-python templates using AST.

Chris Angelico rosuav at gmail.com
Tue Aug 16 12:14:24 EDT 2011


On Tue, Aug 16, 2011 at 12:33 PM, Paul Wray <paul.wray at det.nsw.edu.au> wrote:
> The idea is simply to use python ASTs to transform this code so that it
> accumulates the values of the bare expressions.

That'd be similar to what the interactive loop does. Are you aware,
though, that docstrings are bare expressions? You may have a syntactic
collision there.

ChrisA



More information about the Python-list mailing list