views:

77

answers:

2

why google use so many os.environ .. thanks

alt text alt text alt text alt text

alt text

+2  A: 

Maybe because that's how one should access environment variables from Python, and the Google App Engine has to access environment variables many times for whatever reason. By the way, some of the hits you show above are not directly from Google App Engine but from Django.

Tamás
+1  A: 

The CGI Specification requires that for unix systems, meta-variables are passed to scripts using environment variables. WSGI is built on top of CGI, and any framework you're likely to use in Python on App Engine (including the Django you're apparently using) uses WSGI.

Wooble