[Python-porting] A question about running 2to3 on projects in progress
vinay_sajip at yahoo.co.uk
Sat Mar 3 13:21:10 CET 2012
Suppose a project is being ported using 2to3, and there are some parts of the
codebase which have been converted and others which haven't. 2to3 currently
doesn't like some 3 features when parsing, e.g. print('abc', file=sys.stdout) in
the source causes a parse error at the '='. Is there any way around this, e.g.
picking another grammar dynamically, or is it baked in?
More information about the Python-porting