[mod_python] PyDoc and mod_python

durumdara durumdara at gmail.com
Wed Oct 11 04:09:24 EDT 2006

Hi !

I need to write documentation for my mod_python website, for the base
classes, functions, modules.
The problem, that mod_python is imported "apache" that not existing in
the normal, pythonic way (only in Apache).

If my source is containing a tag that use this module, or it's
submodule, the pydoc is not working.

### test.py ###
from mod_python import apache

The result is.
c:\>c:\python24\Lib\pydoc.py c:\test.py
problem in c:\test.py - ImportError: No module named _apache

So I need a cheat, or I need to force the pydoc to avoid to parse these

Is anybody have an experience, how can I do it ?

Thanks for it:

More information about the Mod_python mailing list