Re: Read-write lock for Python

2011-04-29 Thread Geoff Bache
On Fri, Apr 29, 2011 at 12:38 AM, Ryan Kelly r...@rfk.id.au wrote: On Thu, 2011-04-28 at 07:02 -0700, 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

Read-write lock for Python

2011-04-28 Thread Geoff Bache
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

Re: Read-write lock for Python

2011-04-28 Thread Jean-Michel Pichavant
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

Re: Read-write lock for Python

2011-04-28 Thread Geoff Bache
On Thu, Apr 28, 2011 at 4:28 PM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: 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

Re: Read-write lock for Python

2011-04-28 Thread D'Arcy J.M. Cain
On Thu, 28 Apr 2011 19:14:45 +0200 Geoff Bache geoff.ba...@gmail.com wrote: On Thu, Apr 28, 2011 at 4:28 PM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: What about http://docs.python.org/library/threading.html#lock-objects Those aren't read-write locks. They are basic locks,

Re: Read-write lock for Python

2011-04-28 Thread Geoff Bache
On Thu, Apr 28, 2011 at 7:53 PM, D'Arcy J.M. Cain da...@druid.net wrote: On Thu, 28 Apr 2011 19:14:45 +0200 Geoff Bache geoff.ba...@gmail.com wrote: On Thu, Apr 28, 2011 at 4:28 PM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: What about

Re: Read-write lock for Python

2011-04-28 Thread Ben Finney
Geoff Bache geoff.ba...@gmail.com writes: I currently find myself needing a Python read-write lock. Please tell us what you mean by “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

Re: Read-write lock for Python

2011-04-28 Thread Ryan Kelly
On Thu, 2011-04-28 at 07:02 -0700, 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