[issue2291] Raise a Py3K warning for catching non-BaseException exceptions
Guido van Rossum
report at bugs.python.org
Tue Mar 18 04:00:19 CET 2008
Guido van Rossum <guido at python.org> added the comment:
"except object:" will continue to be a no-op, if only for compatibility.
With -3 it will issue a warning (I just checked this in, from
issue2371). With -3 -Werror it will be an error.
We still need patches to issue -3 warnings for:
- raising exceptions that don't derive from BaseException
- __getitem__ or __getslice__ on exception instances
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2291>
__________________________________
More information about the Python-bugs-list
mailing list