[issue11627] segfault raising an arbitrary object as an exception

Andreas Stührk report at bugs.python.org
Tue Mar 22 02:23:44 CET 2011


Andreas Stührk <andy-python at hammerhartes.de> added the comment:

> Antoine Pitrou <pitrou at free.fr> added the comment:
> You could try something more explicit, such as
> "calling %s() should have returned an instance of BaseException, not %s"
> % (type, Py_TYPE(value))

Thanks, updated the patch.

> By the way, you have a tab character in your patch. Please only use
> spaces for indentation.

I am terribly sorry for that. I always realise after the first changed
line that my editor is in the wrong C mode.

----------

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


More information about the Python-bugs-list mailing list