[Python-checkins] r83774 - python/branches/py3k/Doc/whatsnew/3.2.rst
raymond.hettinger
python-checkins at python.org
Sat Aug 7 06:19:49 CEST 2010
Author: raymond.hettinger
Date: Sat Aug 7 06:19:49 2010
New Revision: 83774
Log:
Fix markup
Modified:
python/branches/py3k/Doc/whatsnew/3.2.rst
Modified: python/branches/py3k/Doc/whatsnew/3.2.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.2.rst (original)
+++ python/branches/py3k/Doc/whatsnew/3.2.rst Sat Aug 7 06:19:49 2010
@@ -97,15 +97,13 @@
page = urllib.urlopen(query).read()
return parse_lyrics(page)
- To help with choosing an effective cache size, the wrapped function
- is instrumented with two attributes 'hits' and 'misses'::
+ To help with choosing an effective cache size, the wrapped function
+ is instrumented with two attributes *hits* and *misses*::
>>> for song in user_requests:
... find_lyrics(song)
- >>> print find_lyrics.hits
- 4805
- >>> print find_lyrics.misses
- 980
+ >>> print(find_lyrics.hits, find_lyrics.misses)
+ 4805 980
(Contributed by Raymond Hettinger)
More information about the Python-checkins
mailing list