Commit e9499aef authored by Raymond Hettinger's avatar Raymond Hettinger

Fix markup

parent 42143562
......@@ -97,15 +97,13 @@ New, Improved, and Deprecated Modules
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment