[issue34416] PyCapsule_Import seems to release the GIL without acquiring it

Brett Cannon report at bugs.python.org
Fri Aug 17 12:55:01 EDT 2018


Brett Cannon <brett at python.org> added the comment:

"From our discussion off the issue tracker, it seems that your contention is that any C API calls can arbitrarily release the GIL, and the calling function can not be said to "hold" the GIL. If this is true than this is not a bug and can be closed."

Correct, because the GIL is a global lock for the whole process, anyone can release it and then acquire it, leading to interleaving and no one owning their locking of it.

----------
nosy: +brett.cannon
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

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


More information about the Python-bugs-list mailing list