Mod Python Question

descartes at gmail.com descartes at gmail.com
Tue May 8 16:34:26 EDT 2007


I am very new to Python and Mod_Python and I am running into what
looks like a caching problem.

I have the following code:
---------------------------------------
from mod_python import apache
from folder import Messenger

def handler(req):

msg = Messenger(req):

# using req.write

msg.write("hello world")

return apache.OK
-----------------------------------------
So the Messenger class has the method "write" which calls req.write.
This will output "hello world" in the browser. However, when I go into
Messenger and change the method name from "write" to anything else, it
still works. It is as if the class is being cached. I have deleted pyc
but that has not done anything either. What is going on?

Thanks.




More information about the Python-list mailing list