[issue6879] misstatement in example explanation using raise

Ezio Melotti report at bugs.python.org
Wed Sep 16 04:55:33 CEST 2009


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

The original was:
>>> raise NameError, 'HiThere'
Since now this form is deprecated, I would remove that paragraph altogether.
Instead, that paragraph should be replaced with:
"The sole argument to raise indicates the exception to be raised. This
must be either an exception instance or an exception class (a class that
derives from Exception)."
as it is now in the Py3 doc (possibly backporting r58076).

----------
assignee: georg.brandl -> ezio.melotti
nosy: +ezio.melotti
priority:  -> low

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6879>
_______________________________________


More information about the Python-bugs-list mailing list