]> granicus.if.org Git - python/commit
Blocked revisions 67818,67822,67850,67857 via svnmerge
authorBenjamin Peterson <benjamin@python.org>
Sun, 21 Dec 2008 01:53:38 +0000 (01:53 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 21 Dec 2008 01:53:38 +0000 (01:53 +0000)
commite1ae3660846787824b76834feb8fef068b6b59ee
tree0c97c08a0c95798dcde880183cab9df92303ff93
parent043e9f1431c954fcefb8b3180ee137ee981e457f
Blocked revisions 67818,67822,67850,67857 via svnmerge

........
  r67818 | antoine.pitrou | 2008-12-16 18:38:28 -0600 (Tue, 16 Dec 2008) | 3 lines

  Issue #2183: Simplify and optimize bytecode for list comprehensions.
........
  r67822 | mark.dickinson | 2008-12-17 10:14:37 -0600 (Wed, 17 Dec 2008) | 4 lines

  Issue #3439: add bit_length method to int and long.
  Thanks Fredrik Johansson and Victor Stinner for code,
  Raymond Hettinger for review.
........
  r67850 | raymond.hettinger | 2008-12-19 03:06:07 -0600 (Fri, 19 Dec 2008) | 9 lines

  Fix-up and clean-up docs for int.bit_length().

  * Replace dramatic footnote with in-line comment about possible round-off errors in logarithms of large numbers.
  * Add comments to the pure python code equivalent.
  * replace floor() with int() in the mathematical equivalent so the type is correct (should be an int, not a float).
  * add abs() to the mathematical equivalent so that it matches the previous line that it is supposed to be equivalent to.
  * make one combined example with a negative input.
........
  r67857 | mark.dickinson | 2008-12-19 11:46:51 -0600 (Fri, 19 Dec 2008) | 2 lines

  Fix typo in Python equivalent for bit_length.
........