Vinay Sajip
2012-03-03 12:21:10 UTC
Hi,
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?
Regards,
Vinay Sajip
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?
Regards,
Vinay Sajip