diff options
| author | Raymond Hettinger <python@rcn.com> | 2008-12-19 09:11:49 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2008-12-19 09:11:49 (GMT) |
| commit | d3e18b7113a6704950d7657134d770066d9542c5 (patch) | |
| tree | eadec4f0c5604068201ad8dd81a2004b97ff06cb /Lib/test/test_array.py | |
| parent | 09027aac9d5101d0e15eac8ba3a5d60e5298f26c (diff) | |
| download | cpython-d3e18b7113a6704950d7657134d770066d9542c5.zip cpython-d3e18b7113a6704950d7657134d770066d9542c5.tar.gz cpython-d3e18b7113a6704950d7657134d770066d9542c5.tar.bz2 | |
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 'Lib/test/test_array.py')
0 files changed, 0 insertions, 0 deletions
