You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only variable itself is thread safe, not its content:
if there is self.x = dict(a ='foo') in one thread and self.x['a'] = 'bar' in another one (without preliminary reinitialization self.x with fresh dict), self.x['a'] will be changed everywhere, even in iceblock, since the latter is a shallow copy.
The text was updated successfully, but these errors were encountered:
Сaution
Only variable itself is thread safe, not its content:
if there is
self.x = dict(a ='foo')
in one thread andself.x['a'] = 'bar'
in another one (without preliminary reinitializationself.x
with freshdict
),self.x['a']
will be changed everywhere, even iniceblock
, since the latter is a shallow copy.The text was updated successfully, but these errors were encountered: