Message77905
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. |
|
Date |
User |
Action |
Args |
2008-12-16 13:56:09 | vstinner | set | recipients:
+ vstinner, loewis, rhettinger, terry.reedy, mark.dickinson, pitrou, fredrikj |
2008-12-16 13:56:08 | vstinner | set | messageid: <1229435768.95.0.333435931775.issue3439@psf.upfronthosting.co.za> |
2008-12-16 13:56:08 | vstinner | link | issue3439 messages |
2008-12-16 13:56:08 | vstinner | create | |
|