[Python-Dev] Proposing a sys.special_exceptions tuple

Barry Warsaw barry at python.org
Thu Sep 30 16:27:10 CEST 2004


On Thu, 2004-09-30 at 10:19, Phillip J. Eby wrote:
> At 08:21 PM 9/30/04 +1000, Nick Coghlan wrote:
> >However, another possibility occurred to me:
> >
> >try:
> >   # Do stuff
> >except sys.special_exceptions:
> >   raise
> >except:
> >   # Deal with all the mundane stuff

+0, except that I'd rather see it put in the exceptions module and given
a name in builtins.

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20040930/18ac1740/attachment.pgp


More information about the Python-Dev mailing list