[mod_python] Newbie Questions

Mateusz Korniak mateusz at ant.gliwice.pl
Mon Nov 13 04:10:48 EST 2006


On Monday 13 November 2006 10:01, g.farina at pharaondev.com wrote:
> 1 - There is a way to call some code only when modpython is called for the
> first time ? I have to load a huge configuration file, and I'd like to do
> it only once and share the loaded object with all the handlers.

Code executed during module import is executed once per each apache process at 
time of first request.

> 3 - Modpython starts a subinterpreter for every call to the handler ?

There is one python interpreter per each apache process.

-- 
Mateusz Korniak


More information about the Mod_python mailing list