[docs] [issue35276] Document thread safety

Raymond Hettinger report at bugs.python.org
Mon Nov 19 14:14:33 EST 2018


Raymond Hettinger <raymond.hettinger at 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 <report at bugs.python.org>
<https://bugs.python.org/issue35276>
_______________________________________


More information about the docs mailing list