summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-09-04 22:46:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-09-04 22:46:06 (GMT)
commit02566ec89f90e5696eef062414c69a7c7ee991df (patch)
treedc8ca5b5c0ca581ebdfaafd073d901c57e9137bd /Doc/whatsnew
parente9a4de51ab5ba19d4b1295aadad0533eea394b0a (diff)
downloadcpython-02566ec89f90e5696eef062414c69a7c7ee991df.zip
cpython-02566ec89f90e5696eef062414c69a7c7ee991df.tar.gz
cpython-02566ec89f90e5696eef062414c69a7c7ee991df.tar.bz2
Adopt more descriptive attribute names as suggested on python-dev.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/3.2.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst
index e3cf864..9181b4f 100644
--- a/Doc/whatsnew/3.2.rst
+++ b/Doc/whatsnew/3.2.rst
@@ -85,17 +85,17 @@ New, Improved, and Deprecated Modules
return c.fetchone()[0]
To help with choosing an effective cache size, the wrapped function is
- instrumented with two attributes *hits* and *misses*::
+ instrumented with two attributes *cache_hits* and *cache_misses*::
>>> for name in user_requests:
... get_phone_number(name)
- >>> print(get_phone_number.hits, get_phone_number.misses)
+ >>> print(get_phone_number.cache_hits, get_phone_number.cache_misses)
4805 980
If the phonelist table gets updated, the outdated contents of the cache can be
cleared with::
- >>> get_phone_number.clear()
+ >>> get_phone_number.cache_clear()
(Contributed by Raymond Hettinger)