[mod_python] Re: Bug in mod_python.c causing multiple/redundant interpreter creation.

Gregory (Grisha) Trubetskoy grisha at modpython.org
Sat Oct 16 10:31:53 EDT 2004



On Sat, 16 Oct 2004, Graham Dumpleton wrote:

> Since the Python apache.import_module() function is going to be called
> to load your content handler, and that has to do file i/o, would be a very
> good candidate for the GIL being given up and thus letting the other threads
> in to be able to check to see if the interpreter needs creating.

I'm pretty sure Python already does release the GIL where necessary (such 
as IO during import), so there is no need to do that from within 
mod_python.

Grisha


More information about the Mod_python mailing list