[Web-SIG] Pre-PEP: Python Web Container Interface v1.0

A.M. Kuchling amk at amk.ca
Mon Dec 8 06:38:06 EST 2003


On Sun, Dec 07, 2003 at 07:05:26PM -0500, Phillip J. Eby wrote:
> Maybe I'm overreacting to being burned by imperfect dictionary simulations 
> in the past.  OTOH, I noticed you haven't actually given a use case for 
> *not* using a dictionary.  :)

os.environ is not a dictionary (nor a subclass of dict), so the simplest CGI
case would be runCGI(sys.stdin, sys.stdout, sys.stderr, os.environ.copy()).
Seems silly.

--amk



More information about the Web-SIG mailing list