how to write thread-safe module ? and pytz
Cantankerous Old Git
CantankerousOldGit at gmail.com
Thu Aug 11 15:34:49 EDT 2005
Daniel Dittmar wrote:
> Dictionaries (and probably most other Python types that are implemented
> in C) are inherently thread safe.
That sounds like a dangerous assumption to me.
Are you relying on the Global Interpreter Lock?
Is is guaranteed?
Does that safety transfer to Jython?
How can I tell if any particular object is thread-safe?
I don't know the answers to these questions, and I have the
feeling that it is probably best to play safe and always use your
own explicit locking.
The Cog
More information about the Python-list
mailing list