diff options
author | Raymond Hettinger <python@rcn.com> | 2009-06-11 22:06:06 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2009-06-11 22:06:06 (GMT) |
commit | 27352a59938163a51e1b76544370e131f859f891 (patch) | |
tree | 728f6efbffb3badcf2cf1be0e660d93e73d95ca9 | |
parent | e046d2aefd2ef761d14feb2df8f0648a71063122 (diff) | |
download | cpython-27352a59938163a51e1b76544370e131f859f891.zip cpython-27352a59938163a51e1b76544370e131f859f891.tar.gz cpython-27352a59938163a51e1b76544370e131f859f891.tar.bz2 |
Move comment to correct line.
-rw-r--r-- | Doc/library/bisect.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst index 6b3f7e8..3890d68 100644 --- a/Doc/library/bisect.rst +++ b/Doc/library/bisect.rst @@ -77,8 +77,8 @@ Instead, it is better to search a list of precomputed keys to find the index 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)] |