From: Raymond Hettinger Date: Thu, 11 Jun 2009 22:07:12 +0000 (+0000) Subject: Move comment to correct line. X-Git-Tag: 3.0~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=38d70488f5d928457dea0ea0fe5f76a07ff1ff66;p=thirdparty%2FPython%2Fcpython.git Move comment to correct line. --- diff --git a/Doc/library/bisect.rst b/Doc/library/bisect.rst index a960fbd14027..9e5e2bd21049 100644 --- a/Doc/library/bisect.rst +++ b/Doc/library/bisect.rst @@ -86,8 +86,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)]