[issue3112] implement PEP 3134 exception reporting

Antoine Pitrou report at bugs.python.org
Mon Jun 23 09:08:34 CEST 2008


Antoine Pitrou <pitrou at free.fr> added the comment:

Le lundi 23 juin 2008 à 06:16 +0000, Adam Olsen a écrit :
> Failure doesn't have an args tuple and doesn't subclass Exception (or
> BaseException) - it already needs modification in 3.0.  It's heaped
> full of complexity and implementation details.  I wouldn't be
> surprised if your changes break it in subtle ways too.

Failure was only an example, I'm sure there are lots of other ones. The
point is that the assertion that user-defined exceptions can be safely
cloned by cloning their args is wrong, unless you want to put very
strong restrictions on how user-defined exceptions can behave.

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


More information about the Python-bugs-list mailing list