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 vstinner
Recipients fredrikj, loewis, mark.dickinson, pitrou, rhettinger, terry.reedy, vstinner
Date 2008-12-16.14:53:56
SpamBayes Score 2.8965116e-05
Marked as misclassified No
Message-id <1229439237.61.0.501652826669.issue3439@psf.upfronthosting.co.za>
In-reply-to
Content
Please don't promote this ugly code "len(bin(x).lstrip('-0b'))". It's 
not the best way to compute the number of bits... I prefer fredrikj's 
proposition (with // 2, few people understand >> 1).
History
Date User Action Args
2008-12-16 14:53:57vstinnersetrecipients: + vstinner, loewis, rhettinger, terry.reedy, mark.dickinson, pitrou, fredrikj
2008-12-16 14:53:57vstinnersetmessageid: <1229439237.61.0.501652826669.issue3439@psf.upfronthosting.co.za>
2008-12-16 14:53:56vstinnerlinkissue3439 messages
2008-12-16 14:53:56vstinnercreate