4.4 util - Miscellaneous Utilities

The util module provides a number of utilities handy to a web application developer.

The functionality provided by util is also available in the standard Python library cgi module, but the implementation in cgi is specific to the CGI environment, making it not the most efficient one for mod_python. For example, the code in util does not use the environment variables since most of the information is available directly from the Request object. Some of the functions in the util module are implemented in C for even better performance.

The recommended way of using this module is:

from mod_python import util

See Also:

Common Gateway Interface RFC Project Page
for detailed information on the CGI specification


Subsections What is this????