[Python-Dev] Release or not release the GIL
Victor Stinner
victor.stinner at gmail.com
Fri Feb 1 01:07:16 CET 2013
Hi,
While working on the implementation of the PEP 433, I saw different
places where Python asks for operating resources without releasing the
GIL.
In my implementation, I released the GIL in the following places. Is it correct?
- os.dup()
- os.dup2()
- os.pipe()
- socket.socketpair()
os.listdir() releases the GIL to call dup(), whereas os.dup() doesn't.
Victor
More information about the Python-Dev
mailing list