Understanding global object persistence in Python WSGI apps
问题 Consider the following code in my WebApp2 application in Google App Engine: count = 0 class MyHandler(webapp2.RequestHandler): def get(self): global count count = count + 1 print count With each refresh of the page, the count increments higher. I'm coming from the PHP world where every request was a new global environment. What I understand to be happening here is, because I'm using the wsgi configuration for WebApp2, Python does not kick off a new process on each request. If I was using a