diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2010-11-30 06:19:46 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2010-11-30 06:19:46 (GMT) |
commit | 234515afe594e5f9ca1b3f460735c68b04c031e2 (patch) | |
tree | 30efe3349cc7414e4f0f6d45f50a984558caea19 /Doc/whatsnew | |
parent | ff27ee0b400030419cfd3c9966f275bfbcb569f8 (diff) | |
download | cpython-234515afe594e5f9ca1b3f460735c68b04c031e2.zip cpython-234515afe594e5f9ca1b3f460735c68b04c031e2.tar.gz cpython-234515afe594e5f9ca1b3f460735c68b04c031e2.tar.bz2 |
Issue 10586: change the new functools.lru_cache implementation to expose the maximum and current cache sizes through the public statistics API. This API is now a single function that returns a named tuple.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.2.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 1edbf50..91ab849 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -332,6 +332,8 @@ New, Improved, and Deprecated Modules c.execute('SELECT phonenumber FROM phonelist WHERE name=?', (name,)) return c.fetchone()[0] + XXX: update for Issue 10586 changes to cache statistics API + To help with choosing an effective cache size, the wrapped function is instrumented with two attributes *cache_hits* and *cache_misses*: |