I'm reading the repoze.lru repository, which I checked out of

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 reason why the get method (lines
34-45 in lru's __init__.py) doesn't seem to be protected with locks?

- Jimmy Hartzell

Repoze-dev mailing list

Reply via email to