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

We make almost no guarantees about atomicity.  If something in CPython happens 
to be atomic, it is not guaranteed to hold in other implementations.   The 
recommendation is to use locks anywhere you need a critical section of code.

FWIW, the term thread-safe is taken to mean, "won't break in a multi-threaded 
environment".  That is a bit different from atomic.  For example, the decimal 
module was designed with thread local contexts, but there are no atomic decimal 
operations.

----------
resolution:  -> rejected
status: open -> closed

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

Reply via email to