I am somewhat confused over how Python for GAE works.
If I have a variable x, that is not in memcache and not in the db, does it retain it's value the next time the script runs (i.e., for the next user)?
class somePage(webapp2.RequestHandler):
x = 1
def get(self):
if x == 2:
foo()
else:
bar()
x = 2
Will foo() ever get called?
What if x is declared outside of somePage?
x = 1
class anotherPage(webapp2.RequestHandler):
def get(self):
if x == 2:
foo()
else:
bar()
x = 2
Is the script "fresh" every time it's hit, or is it like doing:
$ python
>>>
And then having every user queue up to bash (not intended) at the same keyboard?
foo()will never be called.