This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinsci
Recipients skrah, vinsci
Date 2017-07-30.17:53:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501437206.72.0.680767190169.issue31079@psf.upfronthosting.co.za>
In-reply-to
Content
>>> (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.".
History
Date User Action Args
2017-07-30 17:53:26vinscisetrecipients: + vinsci, skrah
2017-07-30 17:53:26vinscisetmessageid: <1501437206.72.0.680767190169.issue31079@psf.upfronthosting.co.za>
2017-07-30 17:53:26vinscilinkissue31079 messages
2017-07-30 17:53:26vinscicreate