[issue25782] CPython hangs on error __context__ set to the error itself

Guido van Rossum report at bugs.python.org
Wed Dec 2 14:50:33 EST 2015


Guido van Rossum added the comment:

Ouch, it's unfortunate those APIs don't have an error return. :-(

Setting it to NULL is one option -- silently ignoring the assignment
(leaving whatever was there) might also be good? In 90% of the cases it
would be the same thing right? (I'm not familiar with this part of the code
TBH.)

----------

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


More information about the Python-bugs-list mailing list