2.2 features

Aahz Maruch aahz at panix.com
Mon Aug 6 00:56:33 EDT 2001


In article <mailman.996867609.24263.python-list at python.org>,
Skip Montanaro  <skip at pobox.com> wrote:
>
>    Paul> For example, this would be illegal:
>
>    Paul>    except x not in class ZeroDivisionError:
>
>But this would be a common construct I think.  You often don't want
>SystemExit and KeyboardInterrupt caught, so I think it would be useful to be
>able to have
>
>    except x not in clas SystemExit, KeyboardInterrupt:

except x in class SystemExit, KeyboardInterrupt:
    raise

Yeah, it's a tiny wart, but I'm perfectly happy to live with it.
-- 
                      --- Aahz  <*>  (Copyright 2001 by aahz at pobox.com)

Hugs and backrubs -- I break Rule 6                 http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista   

"activist for accuracy"  --SJM



More information about the Python-list mailing list