On Wed, Jul 6, 2011 at 8:00 AM, Pol <i...@pol-online.net> wrote:

> On Jul 1, 10:10 am, "Ikai Lan (Google)" <ika...@google.com> wrote:
> > It's possible for two operations to update townCache concurrently, but in
> > your case it looks like it doesn't really matter. If TownModel is somehow
> > updated between reads, it's theoretically possible for you to have an
> older
> > TownModel in the local cache, but if you're going to store something in
> the
> > cache with no expiration, it sounds like you don't care about this case
> > anyway.
>
> Are collections thread-safe in Python? Otherwise, "townCache[id]
> = ..." called at the same time on multiple threads would likely
> corrupt something.
>
>
http://en.wikipedia.org/wiki/Global_Interpreter_Lock

-- 
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