[mod_python] How can I turn off apparent caching of python code?

Tobiah toby at rcsreg.com
Mon Aug 23 10:34:09 EDT 2004

>  DEBUG = 1
>  import mymodulea
>  import mymoduleb
>  if DEBUG:
>         mymodulea = reload(mymodulea)
>         mymoduleb = reload(mymoduleb)
> That is O.K., but still, unwieldy. 

What's more it does not always work.  The docs on
the reload() function reveal that many of the changes
that I make to a module will not have any effect.

If I change the name of a class for instance, the
old one still exists until the apache server is restarted.

So, is there any way at all that I can avoid caching python
objects entirely while developing?



More information about the Mod_python mailing list