Idea for pure-python templates using AST.

Paul Wray paulwray111111 at
Wed Aug 17 01:57:51 CEST 2011

On Aug 17, 2:14 am, Chris Angelico <ros... at> wrote:
> On Tue, Aug 16, 2011 at 12:33 PM, Paul Wray <paul.w... 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.
> ChrisA

Thanks yes ama aware of docstrings but did not consider.
They are easy to strip out though.

More information about the Python-list mailing list