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 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
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to