[Python-Dev] Py3k: Except clause syntax
Russell E. Owen
rowen at cesmail.net
Thu Mar 16 22:56:52 CET 2006
More information about the Python-Dev mailing list
Thu Mar 16 22:56:52 CET 2006
- Previous message: [Python-Dev] Py3k: Except clause syntax
- Next message: [Python-Dev] open() mode is lax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
In article <4418CDD0.8020803 at canterbury.ac.nz>, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote: > For Py3k, any thoughts on changing the syntax of > the except clause from > > except <type>, <value>: > > to > > except <type> as <value>: > > so that things like > > except TypeError, ValueError: > > will do what is expected? Brilliant. I may be showing my clumsiness, but I catch multiple exceptions so rarely that I often stumble over this. -- Russell
- Previous message: [Python-Dev] Py3k: Except clause syntax
- Next message: [Python-Dev] open() mode is lax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list