0

Is it right to use global variables in Google app engine?

I used them in one of my app and it turns out they tends to get flushed after small period of time when app is not being used.

If i am right is there a alternative?

4
  • @JoeBenet can you please explain why the python tag has been added. Commented Mar 6, 2013 at 10:45
  • 1
    @thecoshman I guess because it's in the title as well.. so it is for Python :) Commented Mar 6, 2013 at 10:49
  • ¬_¬ I feel so stupid right now... Commented Mar 6, 2013 at 10:53
  • @thecoshman No worries.. I read it twice before checking the title ;) Commented Mar 6, 2013 at 11:00

1 Answer 1

2

When you use webapp2 you can use a registry. http://webapp-improved.appspot.com/guide/app.html#registry And there is a request registry: http://webapp-improved.appspot.com/guide/request.html#registry

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.