Idea for pure-python templates using AST.

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

On Tue, Aug 16, 2011 at 12:33 PM, Paul Wray <paul.wray at> 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.


More information about the Python-list mailing list