Re: how to write thread-safe module ? and pytz

2005-08-14 Thread nicolas_riesch
Thank you very much for all your explanation ! Your pytz module is great ! -- http://mail.python.org/mailman/listinfo/python-list

Re: how to write thread-safe module ? and pytz

2005-08-13 Thread Stuart Bishop
nicolas_riesch wrote: > Does someone know if the module pytz > (http://sourceforge.net/projects/pytz/) is thread-safe ? > I have not seen it explicitely stated, and just wanted to be sure, as I > want to use it. pytz is thread safe. > That's because in the file pytz/tzinfo.py, I see global variab

Re: how to write thread-safe module ? and pytz

2005-08-11 Thread Cantankerous Old Git
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 tel

Re: how to write thread-safe module ? and pytz

2005-08-10 Thread Daniel Dittmar
nicolas_riesch wrote: > Does someone know if the module pytz > (http://sourceforge.net/projects/pytz/) is thread-safe ? > I have not seen it explicitely stated, and just wanted to be sure, as I > want to use it. > > That's because in the file pytz/tzinfo.py, I see global variables > _timedelta_cac

Re: how to write thread-safe module ? and pytz

2005-08-10 Thread Bryan Olson
nicolas_riesch wrote: > Does someone know if the module pytz > (http://sourceforge.net/projects/pytz/) is thread-safe ? On that, I don't know. > That's because in the file pytz/tzinfo.py, I see global variables > _timedelta_cache, _datetime_cache, _ttinfo_cache, which are > dictionnaries and

how to write thread-safe module ? and pytz

2005-08-10 Thread nicolas_riesch
Does someone know if the module pytz (http://sourceforge.net/projects/pytz/) is thread-safe ? I have not seen it explicitely stated, and just wanted to be sure, as I want to use it. That's because in the file pytz/tzinfo.py, I see global variables _timedelta_cache, _datetime_cache, _ttinfo_cache,