D
descartes
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.
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.