A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-August/055217.html below:

[Python-Dev] PEP 8: exception style

[Python-Dev] PEP 8: exception style [Python-Dev] PEP 8: exception styleRaymond 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4