This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hfuru
Recipients hfuru, loewis
Date 2010-10-12.15:25:23
SpamBayes Score 0.00012933098
Marked as misclassified No
Message-id <hbf.20101012jo4f@bombur.uio.no>
In-reply-to <1286892685.06.0.886216583275.issue10070@psf.upfronthosting.co.za>
Content
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.
History
Date User Action Args
2010-10-12 15:25:25hfurusetrecipients: + hfuru, loewis
2010-10-12 15:25:23hfurulinkissue10070 messages
2010-10-12 15:25:23hfurucreate