Message299505
>>> (0).bit_length.__doc__
"int.bit_length() -> int\n\nNumber of bits necessary to represent self in binary.\n>>> bin(37)\n'0b100101'\n>>> (37).bit_length()\n6"
The library documentation has clearly been written in disregard of the advertised functionality in the docstrings of the methods.
The documentation is just echoing the flaws of the unit tests.
For the Python 3 variant of this issue, it can be added that the library documentation wrongly states that the method is "New in version 3.1.". |
|
Date |
User |
Action |
Args |
2017-07-30 17:53:26 | vinsci | set | recipients:
+ vinsci, skrah |
2017-07-30 17:53:26 | vinsci | set | messageid: <1501437206.72.0.680767190169.issue31079@psf.upfronthosting.co.za> |
2017-07-30 17:53:26 | vinsci | link | issue31079 messages |
2017-07-30 17:53:26 | vinsci | create | |
|