Read-write lock for Python

Jean-Michel Pichavant jeanmichel at sequans.com
Thu Apr 28 10:28:59 EDT 2011


Geoff Bache wrote:
> Hi all,
>
> I currently find myself needing a Python read-write lock. I note that
> there is none in the standard library, but googling "python read-write
> lock" quickly produced 6 different competing examples, including two
> languishing patch proposals for the standard library.
>
> I can always pick a random one and hope for the best, but I was hoping
> someone here might have a tip for one that has been used and debugged
> and is likely to work.
>
> Regards,
> Geoff Bache
>   
What about

http://docs.python.org/library/threading.html#lock-objects
 
?

JM



More information about the Python-list mailing list