[mod_python] Reloading of modules

Gregory (Grisha) Trubetskoy grisha at modpython.org
Mon Jun 25 15:25:03 EST 2001


This behaviour would be OS specific. On win32 you should see the counter
increasing, on UNIX you will have a counter per process. Which platform
are you on?

On Mon, 25 Jun 2001, Adam Langley wrote:

> (I've searched thru the list archives and the following message seems
> to be relevent, but there was no useful followup:
> http://www.modpython.org/pipermail/mod_python/2001-May/001324.html)
>
> 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?
>
> httpd.conf:
>     SetHandler python-program
>     PythonHandler mod_python.publisher
>     PythonInterpreter main
>     PythonDebug on
>
> Thanks
>
> AGL
>
> --
> Never underestimate the power of a small tactical nuclear weapon.
>
>
>
>
>
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list