summaryrefslogtreecommitdiff
path: root/Python/pystrcmp.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-12-19 09:11:49 +0000
committerRaymond Hettinger <python@rcn.com>2008-12-19 09:11:49 +0000
commitd3e18b7113a6704950d7657134d770066d9542c5 (patch)
treeeadec4f0c5604068201ad8dd81a2004b97ff06cb /Python/pystrcmp.c
parent09027aac9d5101d0e15eac8ba3a5d60e5298f26c (diff)
downloadcpython-git-d3e18b7113a6704950d7657134d770066d9542c5.tar.gz
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.
Diffstat (limited to 'Python/pystrcmp.c')
0 files changed, 0 insertions, 0 deletions