On 6 Jan 2006 14:44:39 -0800, [EMAIL PROTECTED] wrote: >Hi, I was looking at the code in the standard lib's mutex.py, which is >used for queuing function calls. Here is how it lets you acquire a >lock:
Did you read the module docstring? Of course, no multi-threading is implied -- hence the funny interface for lock, where a function is called once the lock is aquired. If you are looking for a mutex suitable for multithreaded use, see the threading module. Jean-Paul -- http://mail.python.org/mailman/listinfo/python-list