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.

作者 vstinner
收信人 fredrikj, loewis, mark.dickinson, pitrou, rhettinger, terry.reedy, vstinner
日期 2008-12-16.13:56:08
SpamBayes Score 0.019854585
Marked as misclassified
Message-id <1229435768.95.0.333435931775.issue3439@psf.upfronthosting.co.za>
In-reply-to
内容
x.numbits() is:
  math.ceil(math.log(abs(x)) / math.log(2)) if x != 0
  0 otherwise

and not 1 + math.floor(math.log(x) / math.log(2))

(16).numbits() is 4, not 5.
历史
日期 用户 动作 参数
2008-12-16 13:56:09vstinner修改recipients: + vstinner, loewis, rhettinger, terry.reedy, mark.dickinson, pitrou, fredrikj
2008-12-16 13:56:08vstinner修改messageid: <1229435768.95.0.333435931775.issue3439@psf.upfronthosting.co.za>
2008-12-16 13:56:08vstinner链接issue3439 messages
2008-12-16 13:56:08vstinner创建