<p dir="ltr"><br>
On 18 May 2013 20:33, "Dennis Lee Bieber" <<a href="mailto:wlfraed@ix.netcom.com">wlfraed@ix.netcom.com</a>> wrote:<br>
>         Python threads work fine if the threads either rely on intelligent<br>
> DLLs for number crunching (instead of doing nested Python loops to<br>
> process a numeric array you pass it to something like NumPy which<br>
> releases the GIL while crunching a copy of the array) or they do lots of<br>
> I/O and have to wait for I/O devices (while one thread is waiting for<br>
> the write/read operation to complete, another thread can do some number<br>
> crunching).</p>
<p dir="ltr">Has nobody thought of a context manager to allow a part of your code to free up the GIL? I think the GIL is not inherently bad, but if it poses a problem at times, there should be a way to get it out of your... Way.</p>