[Python-Dev] Tidier Exceptions

Guido van Rossum gvanrossum at gmail.com
Fri May 13 01:09:21 CEST 2005

[Ka-Ping Yee]
> It occurred to me as i was messing around with handling and re-raising
> exceptions that tossing around these (type, value, traceback) triples
> is irritating and error-prone.
> How about just passing around a single value?  All we'd have to do is
> put the traceback in value.traceback.

I proposed the same thing a while back (during the early hours of
writing PEP 340).

It won't fly as long as we have string exceptions (since there's
nowhere to put the traceback) but once those are dead I like it a lot.

--Guido van Rossum (home page: http://www.python.org/~guido/)

More information about the Python-Dev mailing list