Re: Read-write lock for Python

2011-04-29 Thread Geoff Bache
On Fri, Apr 29, 2011 at 12:38 AM, Ryan Kelly 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 d

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 pa

Re: Read-write lock for Python

2011-04-28 Thread Ben Finney
Geoff Bache 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, including two langui

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 wrote: > On Thu, 28 Apr 2011 19:14:45 +0200 > Geoff Bache wrote: >> On Thu, Apr 28, 2011 at 4:28 PM, Jean-Michel Pichavant >> wrote: >> > What about >> > >> > http://docs.python.org/library/threading.html#lock-objects >> >> Those aren't read-writ

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 wrote: > On Thu, Apr 28, 2011 at 4:28 PM, Jean-Michel Pichavant > wrote: > > What about > > > > http://docs.python.org/library/threading.html#lock-objects > > Those aren't read-write locks. They are basic locks, which don't > distinguish between rea

Re: Read-write lock for Python

2011-04-28 Thread Geoff Bache
On Thu, Apr 28, 2011 at 4:28 PM, Jean-Michel Pichavant 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 competing exa

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 ca

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 rando