[issue42569] Callers of _Py_fopen/_Py_wfopen may be broken after addition of audit hooks

Steve Dower report at bugs.python.org
Fri Dec 4 14:53:33 EST 2020


Steve Dower <steve.dower at python.org> added the comment:

If the GIL is not held, no exception should be raised, so the fact that you've got one there means that the GIL is held and the main.c-specific error message is the bit that's wrong.

So it should be, "if they fail and you're in a context where exceptions are allowed, raise an exception" (which will chain back to the one raised from an audit hook".

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42569>
_______________________________________


More information about the Python-bugs-list mailing list