Difference between mutex.mutex and threading.Lock

Roy Smith roy at panix.com
Fri Dec 4 18:30:03 EST 2009


In article 
<fb576a7f-696c-49b4-a563-573af507ca0f at g22g2000prf.googlegroups.com>,
 zeph <zephjc at gmail.com> wrote:

> The mutex class (and module) should not be used, since it is, as you
> said, deprecated for 3.0. Like the docs say, it "does not require (or
> imply) threading or multi-tasking, though it could be useful for those
> purposes."

Over the years, many things about Python have surprised, amused, and on 
occasion confused, me.  I must admit, having a mutex which isn't 
thread-safe is pretty high up on the list of "does not fit my brain" items 
:-)



More information about the Python-list mailing list