[Repoze-dev] locking in repoze.lru

2011-12-28 Thread Jimmy Hartzell
I'm reading the repoze.lru repository, which I checked out of https://github.com/repoze/repoze.lru. I have two questions about the locking: 1) It uses explicit self.lock.acquire and self.lock.release's. Is there a reason it's not using the with statement? 2) But more interestingly, is there any

Re: [Repoze-dev] locking in repoze.lru

2011-12-28 Thread Chris McDonough
On Wed, 2011-12-28 at 18:55 -0500, Jimmy Hartzell wrote: I'm reading the repoze.lru repository, which I checked out of https://github.com/repoze/repoze.lru. I have two questions about the locking: 1) It uses explicit self.lock.acquire and self.lock.release's. Is there a reason it's not