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