Movatterモバイル変換
[0]ホーム
[Python-Dev] PEP 8: exception style
Raymond Hettingerraymond.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"), tbThe instantiation and bindings need to be done in one step withoutmixing two syntaxes. Treat this case the same as everything else:raise ValueError("blip", traceback=tb)Raymond
More information about the Python-Devmailing list
[8]ページ先頭