Bruno Desthuilliers bdesth.quelquechose at
Thu Jul 5 06:24:40 CEST 2007

tuom.larsen at a écrit :
> Dear all,
> what is the difference? Middleware?
> I'm wondering because the only variables I ever needed were PATH_INFO,
> REQUEST_METHOD, QUERY_STRING and maybe one more, all of which should
> be available from CGI, too.
> Thanks.

WSGI is intented as a gateway between a web server and a long-running 
python application. Which means you don't have to launch a new Python 
interpreter, import libs, parse config, connect to the database etc etc 
for each and every request.

Also, it's (IMHO) much more usable than CGI.

More information about the Python-list mailing list