[Python-Dev] PEP 8: exception style

Guido van Rossum gvanrossum at gmail.com
Mon Aug 8 01:58:42 CEST 2005

> > Maybe in Py3K this could become
> >
> > raise ValueError("bloop"), tb
> The instantiation and bindings need to be done in one step without
> mixing two syntaxes.  Treat this case the same as everything else:
> raise ValueError("blip", traceback=tb)

That requires PEP 344. I have some vague feeling that the way we build
up the traceback by linking backwards, this may not necessarily work
right. I guess somebody has to try to implement PEP 344 in order to
find out.

(In fact, I think trying to implement PEP 344 would be an *excellent*
way to validate it.)

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

More information about the Python-Dev mailing list