Python Gotcha's?

Terry Reedy tjreedy at udel.edu
Thu Apr 5 21:46:57 EDT 2012


On 4/5/2012 7:36 PM, Miki Tebeka wrote:
>> Now, if you wish to boggle your mind about something pythonic, how about
>> mutexes not being thread safe (http://bugs.python.org/issue1746071)?
> This is and old and deprecated module, you should not use it.
>
> Use http://docs.python.org/library/threading.html#threading.Lock and friends instead.
>
> IMO the bug should be to remove this module and it's documentation :)

 >>> import mutex
Traceback (most recent call last):
   File "<pyshell#0>", line 1, in <module>
     import mutex
ImportError: No module named 'mutex'

It was closed as "won't fix" because
"On 2008/2/23, Guido van Rossum said in python-dev
 > According to the docstring it's only meant to be used with sched.py.
 > Please don't try to make it work with threads!
Anyway, this module will be removed, or at least its API hidden, in 3.0."

-- 
Terry Jan Reedy




More information about the Python-list mailing list