In article <[EMAIL PROTECTED]>,
Gary Herron  <[EMAIL PROTECTED]> wrote:
>
>However, the upshot of all of this is that one must maintain extreme 
>skepticism.   Unless you know both your Python code and any extension 
>modules you call, and you know them at a level necessary to find such 
>details, you must conclude that any operation, no matter how atomic it 
>my look, may in fact not be atomic. 

Absolutely.  Note that your statement is insufficiently encompassing:
any Python library code might easily use classes that define special
methods that cause GIL release.

This is why those of us who champion correct use of threads say that the
only easy way to create working threaded programs is to pass objects
around in Queues and never never never use an object in multiple threads.
-- 
Aahz ([EMAIL PROTECTED])           <*>         http://www.pythoncraft.com/

Help a hearing-impaired person: http://rule6.info/hearing.html
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to