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.