double import protection - how to ?

Helmut Jarausch jarausch at skynet.be
Mon Dec 1 11:09:55 EST 2008


Peter Otten wrote:
> Helmut Jarausch wrote:
> 
>> Peter Otten wrote:
>>> Helmut Jarausch wrote:

>> Then it's a problem with a problem with a webserver written in Python
>> (Karrigell-3.0) and probably related to multi-threading (the statements in
>> my module get definitely executed more than once).
> 
> Maybe you have the reload_modules* option switched on? That would defeat
> Python's caching in order to ease development.
> 
> (*) see http://karrigell.sourceforge.net/en/configuration.htm
> 

Thanks Peter for the hint.
Indeed, I am trying to port my application to Karrigell-3.0,
where Python's caching is bypassed and the statements in the
module get executed each time. So, I have to install a trap door
using a global variable.

Helmut.


-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



More information about the Python-list mailing list