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.

作者 rhettinger
收信人 fredrikj, loewis, mark.dickinson, pitrou, rhettinger, terry.reedy, vstinner
日期 2008-12-16.12:47:12
SpamBayes Score 0.14022696
Marked as misclassified
Message-id <1229431633.92.0.587074592179.issue3439@psf.upfronthosting.co.za>
In-reply-to
内容
Oops, forgot one part of the doc definition in the proposed additional
tests:

for x in range(-65000, 65000):
    k = x.numbits()
    assert k == len(bin(x).lstrip('-0b'))
    if x > 0:
        assert 2 ** (k-1) <= x < 2**k
        assert k == 1 + math.floor(math.log(x) / math.log(2))
    elif x == 0:
        assert k == 0
    else:
        assert k == (-x).numbits()
历史
日期 用户 动作 参数
2008-12-16 12:47:14rhettinger修改recipients: + rhettinger, loewis, terry.reedy, mark.dickinson, pitrou, vstinner, fredrikj
2008-12-16 12:47:13rhettinger修改messageid: <1229431633.92.0.587074592179.issue3439@psf.upfronthosting.co.za>
2008-12-16 12:47:12rhettinger链接issue3439 messages
2008-12-16 12:47:12rhettinger创建