Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:

The general rule in Python is that nothing can be considered atomic unless 
specifically documented as atomic (such as the queue module or lru_cache which 
have internal locks).  The only safe action is to put locks around all accesses 
to shared resources.  We should have a FAQ entry to that effect.  It should 
also note that "thread-safe" means different things to different people.

----------
nosy: +rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35276>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to