[Python-ideas] Extending error handling on with statements.

Jan Kaliszewski zuo at chopin.edu.pl
Mon Mar 28 01:18:54 CEST 2011


I don't like the idea of that magic goto.

But:

    with ...:
        ...
    except ...:
        ...
    ...

as a shortcut for:

    try:
        with ...:
            ...
    except ...:
        ...
    ...

IMHO seems to be worth considering.

Regards.
*j




More information about the Python-ideas mailing list