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 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. > > I wrote and have used the "SHLock" class in threading2 which should do > what you need. Don't know about "likely to work" but if it doesn't, I'd > like to hear about it so I can fix it :-)
That's good enough for me :) Thanks, I'll give it a try. /Geoff -- http://mail.python.org/mailman/listinfo/python-list