[issue1706039] Added clearerr() to clear EOF state

Guilherme Polo report at bugs.python.org
Mon Dec 22 00:42:49 CET 2008


Guilherme Polo <ggpolo at gmail.com> added the comment:

It isn't being careful when calling PyErr_SetFromErrno inside the
Py_UniversalNewlineFread function since this function is being called
all over fileobject after releasing the GIL.. so, isn't this just a
matter of adding pairs of PyGILState_Ensure/PyGILState_Release around
these calls to PyErr_SetFromErrno in this specific function ?

----------
nosy: +gpolo

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


More information about the Python-bugs-list mailing list