[mod_python] apache.py suggestions

Greg Stein gstein at lyra.org
Fri May 26 01:54:54 EST 2000

Here are a few more suggestions, but for apache.py:

*) avoid exec/eval: they are quite slow, and can pose a security risk

*) to import modules, use: module = __import__(module_name)

*) resolve_object(), use the getattr() function for traversing

*) copy a dictionary using dict.copy()

*) maybe move some of the CGI stuff off to 'cgihandler'


Greg Stein, http://www.lyra.org/

Mod_python mailing list
Mod_python at modpython.org

More information about the Mod_python mailing list