ast.parse

Kiuhnm kiuhnm03.4t.yahoo.it
Mon Apr 9 07:53:21 EDT 2012


Is it a known fact that ast.parse doesn't handle line continuations and 
some multi-line expressions?
For instance, he doesn't like
     for (x,
          y) in each([1,
                      2]):
         print(1)
at all.
Is there a workaround besides "repairing" the code on the fly?

Kiuhnm



More information about the Python-list mailing list