Re: thread-local data

2009-02-06 Thread Emanuele D'Arrigo
Thank you both MRAB and Diez. I think I'll stick to making copies inside a thread-protected section unless I need to speed up things, at which point I might go for the key exception path. Thank you again! Manu -- http://mail.python.org/mailman/listinfo/python-list

Re: thread-local data

2009-02-06 Thread Diez B. Roggisch
Diez B. Roggisch schrieb: Emanuele D'Arrigo schrieb: Hi everybody, Assuming a snippet such as: threadLocalData = threading.local() threadLocalData.myDictionary = self.myDictionary is it correct to say that threadLocalData.myDictionary is NOT a thread- local -copy- of self.myDictionary but it'

Re: thread-local data

2009-02-06 Thread Diez B. Roggisch
Emanuele D'Arrigo schrieb: Hi everybody, Assuming a snippet such as: threadLocalData = threading.local() threadLocalData.myDictionary = self.myDictionary is it correct to say that threadLocalData.myDictionary is NOT a thread- local -copy- of self.myDictionary but it's actually pointing to the

Re: thread-local data

2009-02-06 Thread MRAB
Emanuele D'Arrigo wrote: > Hi everybody, > > Assuming a snippet such as: > > threadLocalData = threading.local() > threadLocalData.myDictionary = self.myDictionary > > is it correct to say that threadLocalData.myDictionary is NOT a thread- > local -copy- of self.myDictionary but it's actually poin

thread-local data

2009-02-06 Thread Emanuele D'Arrigo
Hi everybody, Assuming a snippet such as: threadLocalData = threading.local() threadLocalData.myDictionary = self.myDictionary is it correct to say that threadLocalData.myDictionary is NOT a thread- local -copy- of self.myDictionary but it's actually pointing to the same object? If that's the c