[Python-Dev] PEP 8: exception style
Raymond Hettinger
raymond.hettinger at verizon.net
Sun Aug 7 20:25:17 CEST 2005
> > How do you then supply a traceback to the raise statement?
>
> raise ValueError, ValueError("blah"), tb
>
> 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)
Raymond
More information about the Python-Dev
mailing list