I have this code:

peoples = memcache.get(first)
if people is not None:
    peoples = pickle.loads(peoples)
else:
    peoples = People.gql("WHERE first = :first", first = first)
    memcache.set(first,peoples)
    peoples = memcache.get(first)
    peoples = pickle.loads(peoples)
for p in peoples:
    key_as_str = str(p.key())

which seems to work.  Has anyone done anything like this?  Can you
comment on why it works (I am very novice when it comes to Python)?
Is there anything I need to watch out for when doing something like
this?  Is this even advisable / proper?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to