Message299500
It takes as many bits to store the number 0 as the number 1, but the implementation claims it takes no bits at all to store a 0.
>>> (1).bit_length() == (0).bit_length() and True or False
False
It takes one extra bit to store the sign for negative numbers, but this isn't reflected in the implementations.
>>> (-1).bit_length() == 1 + (1).bit_length() and True or False
False |
|
Date |
User |
Action |
Args |
2017-07-30 16:27:18 | vinsci | set | recipients:
+ vinsci |
2017-07-30 16:27:18 | vinsci | set | messageid: <1501432038.15.0.969151408213.issue31079@psf.upfronthosting.co.za> |
2017-07-30 16:27:18 | vinsci | link | issue31079 messages |
2017-07-30 16:27:17 | vinsci | create | |
|