releasing interpreter lock in custom code?

2006-05-11 Thread Bram Stolk
Hello, I've implemented, in C, a function that does a lot of I/O, and thus can block for a long time. If I execute this function in my Python script, it does not relinquish the global interpreter lock, like Python's native blocking functions do, like I/O funcs, and time.sleep() func. How can

Re: releasing interpreter lock in custom code?

2006-05-11 Thread Sion Arrowsmith
Bram Stolk [EMAIL PROTECTED] wrote: I've implemented, in C, a function that does a lot of I/O, and thus can block for a long time. If I execute this function in my Python script, it does not relinquish the global interpreter lock, like Python's native blocking functions do, like I/O funcs, and

Re: releasing interpreter lock in custom code?

2006-05-11 Thread Andrew MacIntyre
Bram Stolk wrote: I've implemented, in C, a function that does a lot of I/O, and thus can block for a long time. If I execute this function in my Python script, it does not relinquish the global interpreter lock, like Python's native blocking functions do, like I/O funcs, and time.sleep()