Mod_python vs normal CGI

Jon Ribbens jon+usenet at unequivocal.co.uk
Thu May 29 09:22:54 EDT 2003


In article <UcnBa.239$dp1.2137 at news.bc.tac.net>, Guy Heatley wrote:
> Here is a quote from the mod_python docs (section 6.2) concerning the CGI 
> handler:
> "The handler is provided as a stepping stone for the migration of legacy 
> code away from CGI. It is not recommended that you settle on using this 
> handler as the preferred way to use mod_python for the long term."
> 
> If mod_python is reliable and provides a performance enhancement, surely it 
> is the way to go?

That is saying, if you use mod_python, don't use the CGI handler of
mod_python unless you have to, but use the native mod_python interfaces.

Personally I would suggest http://jonpy.sf.net/ which provides an
interface such that you can write your code once and it will work
unchanged under CGI, mod_python and FastCGI.




More information about the Python-list mailing list