[issue9221] 2to3 fails to parse a for construct

2010-07-10 Thread Éric Araujo
Éric Araujo added the comment: You are supposed to use “...” on continuation lines, not “>>>”: http://docs.python.org/glossary#term-1 http://docs.python.org/dev/library/doctest#how-are-docstring-examples-recognized Please reopen it the problem persists after this change. Thank you! --

[issue9221] 2to3 fails to parse a for construct

2010-07-10 Thread Tiago Antao
New submission from Tiago Antao : 2to3 crashes with a apparently simple for. An example is presented (the first line is actually enough) >>> for clade in tree.find_clades(branch_length=True, order='level'): >>> if (clade.branch_length < .5 and >>> not clade.is