[issue10070] 2to3 wishes for already-2to3'ed files

Hallvard B Furuseth report at bugs.python.org
Tue Oct 12 17:25:25 CEST 2010


Hallvard B Furuseth <h.b.furuseth at usit.uio.no> added the comment:

Another syntax could be attached to if-else and try-except.  Given:

    if ...:
        <block 1>
    else:
        <block 2>

or
    try:
        <block 1>
    except ...:
        <block 2>

if 2to3 would translate <block 1> to <block 2> or vise versa, sans
whitespace/comment differences, then it does not do so.  Instead it
assumes the blocks are for running under Python 2 and 3 respectively.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10070>
_______________________________________


More information about the Python-bugs-list mailing list