]> granicus.if.org Git - python/commitdiff
Move comment to correct line.
authorRaymond Hettinger <python@rcn.com>
Thu, 11 Jun 2009 22:06:06 +0000 (22:06 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 11 Jun 2009 22:06:06 +0000 (22:06 +0000)
Doc/library/bisect.rst

index 6b3f7e8fd03894dc49fe42865cc98ca9cae289d8..3890d6813625fc2ccc665be515ca0e8aa610e3c1 100644 (file)
@@ -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)]