[issue8627] Unchecked PyErr_WarnPy3k return value in Objects/typeobject.c

Mark Dickinson report at bugs.python.org
Sat May 8 18:50:11 CEST 2010


Mark Dickinson <dickinsm at gmail.com> added the comment:

I also have my doubts about the other 'goto error' lines in PyType_Ready, but I haven't figured out how to trigger those gotos in normal code.

Trying to figure out how to clean up properly on error in PyType_Ready is making my head hurt.

As a quick fix, we could simply do a PyErr_Clear() if the PyErr_WarnPy3k returns -1;  this clearly isn't right, but at least it gets rid of the "XXX undetected error".

----------

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


More information about the Python-bugs-list mailing list