[mod_python] Reloading of modules

Adam Langley agl at linuxpower.org
Mon Jun 25 19:16:03 EST 2001

(I've searched thru the list archives and the following message seems
to be relevent, but there was no useful followup:

Using the following test script:
from mod_python import apache

i = 0
def test(req):
    req.content_type = "text/html"
    req.send_http_header ()

    global i
    req.write (str(i) + "<br>")
    i += 1
    return ""

This works as expected until you start refreshing quickly, when the
counter gets reset.

Why is mod_python reimporting the file?

    SetHandler python-program
    PythonHandler mod_python.publisher
    PythonInterpreter main
    PythonDebug on



Never underestimate the power of a small tactical nuclear weapon.

More information about the Mod_python mailing list