[issue3443] crash on badly initialised AttributeError

Stefan Behnel report at bugs.python.org
Sun Jul 27 09:04:35 CEST 2008

Stefan Behnel <scoder at users.sourceforge.net> added the comment:

Thanks a lot for the analysis. I was considering that this was a problem
with Cython, but since this was the first time I got a crash on this
(even Py3.0b1 didn't expose this), I wanted to ask here first.

Your explanation sounds like the right thing to do would be to clear the
exception state when a function exists cleanly but an exception was
raised and caught during its execution. So the exception state would
only stay available within the function itself. We could also try to
emulate the Py3 behaviour as outlined in PEP 3110. But we'll have to
discuss that on the Cython mailing list.

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list