[issue10593] LRU Cache with maxsize=None

2010-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Applied in r86911. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue10593] LRU Cache with maxsize=None

2010-11-30 Thread Nick Coghlan
Nick Coghlan added the comment: Nice! You may still need to use the lock even for the simple unbounded case though - incrementing hits and misses isn't atomic, so the statistics may be miscounted if you get a hit or miss in different threads at the same time. Alternatively, we could just doc

[issue10593] LRU Cache with maxsize=None

2010-11-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file19886/cache.diff ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10593] LRU Cache with maxsize=None

2010-11-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file19887/cache2.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10593] LRU Cache with maxsize=None

2010-11-30 Thread Raymond Hettinger
New submission from Raymond Hettinger : Nick, I may have found a straight-forward way to incorporate your idea for the cache to support maxsize=None. Let me know what you think. -- assignee: ncoghlan components: Library (Lib) files: cache.diff keywords: patch messages: 122967 nosy: nco