summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2010-08-07 21:31:55 (GMT)
committerRaymond Hettinger <python@rcn.com>2010-08-07 21:31:55 (GMT)
commit769b6d30091902562ceb09e62f2958bcc441391a (patch)
tree64fc4f0ad96c5bca73d6689d89faed4cf2c87eae /Doc
parent0a3ddad666d3c30f3b232a1825dc6d8e2de04b47 (diff)
downloadcpython-769b6d30091902562ceb09e62f2958bcc441391a.zip
cpython-769b6d30091902562ceb09e62f2958bcc441391a.tar.gz
cpython-769b6d30091902562ceb09e62f2958bcc441391a.tar.bz2
Clean-up docstring in examples.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/bisect.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst
index bcbcb07..43354ae 100644
--- a/Doc/library/bisect.rst
+++ b/Doc/library/bisect.rst
@@ -61,7 +61,7 @@ functions show how to transform them into the standard lookups for sorted
lists::
def find(a, key):
- '''Find item with a key-value equal to key.
+ '''Find leftmost item exact equal to the key.
Raise ValueError if no such item exists.
'''
@@ -71,9 +71,9 @@ lists::
raise ValueError('No item found with key equal to: %r' % (key,))
def find_le(a, key):
- '''Find largest item with a key-value less-than or equal to key.
+ '''Find largest item less-than or equal to key.
Raise ValueError if no such item exists.
- If multiple key-values are equal, return the leftmost.
+ If multiple keys are equal, return the leftmost.
'''
i = bisect_left(a, key)
@@ -84,9 +84,9 @@ lists::
return a[i-1]
def find_ge(a, key):
- '''Find smallest item with a key-value greater-than or equal to key.
+ '''Find smallest item greater-than or equal to key.
Raise ValueError if no such item exists.
- If multiple key-values are equal, return the leftmost.
+ If multiple keys are equal, return the leftmost.
'''
i = bisect_left(a, key)