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, rhettinger
日期 2008-07-25.00:11:02
SpamBayes Score 0.016492376
Marked as misclassified
Message-id <1216944667.62.0.268421571631.issue3439@psf.upfronthosting.co.za>
In-reply-to
内容
numbers.Integral is already way too fat of an API.  Am -1 on expanding 
it further.  Recommend sticking with the simplest, least invasive, 
least pervasive version of your request, a numbits() method for ints.

FWIW, in Py2.6 you can already write:

  def numbits(x):
      return len(bin(abs(x))) - 2
历史
日期 用户 动作 参数
2008-07-25 00:11:08rhettinger修改spambayes_score: 0.0164924 -> 0.016492376
recipients: + rhettinger, loewis, fredrikj
2008-07-25 00:11:07rhettinger修改spambayes_score: 0.0164924 -> 0.0164924
messageid: <1216944667.62.0.268421571631.issue3439@psf.upfronthosting.co.za>
2008-07-25 00:11:05rhettinger链接issue3439 messages
2008-07-25 00:11:04rhettinger创建