Number of bits/sizeof int

Jon Clements joncle at
Sat Jan 31 08:03:27 CET 2009

Hi Group,

This has a certain amount of irony (as this is what I'm pretty much
"The int() type gained a bit_length method that returns the number of
bits necessary to represent its argument in binary:"

Any tips on how to get this in 2.5.2 as that's the production version
I'm stuck with.



More information about the Python-list mailing list