[Python-checkins] r73371 - python/branches/release30-maint/Doc/library/bisect.rst
raymond.hettinger
python-checkins at python.org
Fri Jun 12 00:07:13 CEST 2009
Author: raymond.hettinger
Date: Fri Jun 12 00:07:12 2009
New Revision: 73371
Log:
Move comment to correct line.
Modified:
python/branches/release30-maint/Doc/library/bisect.rst
Modified: python/branches/release30-maint/Doc/library/bisect.rst
==============================================================================
--- python/branches/release30-maint/Doc/library/bisect.rst (original)
+++ python/branches/release30-maint/Doc/library/bisect.rst Fri Jun 12 00:07:12 2009
@@ -86,8 +86,8 @@
of the record in question::
>>> data = [('red', 5), ('blue', 1), ('yellow', 8), ('black', 0)]
- >>> data.sort(key=lambda r: r[1]) # precomputed list of keys
- >>> keys = [r[1] for r in data]
+ >>> data.sort(key=lambda r: r[1])
+ >>> keys = [r[1] for r in data] # precomputed list of keys
>>> data[bisect_left(keys, 0)]
('black', 0)
>>> data[bisect_left(keys, 1)]
More information about the Python-checkins
mailing list