Message233145
255 is 255 -> True (255).bit_length() -> 8
256 is 256 -> True (256).bit_length() -> 9
257 is 257 -> False (257).bit_length() -> 9
^
Will show True if you do it exactly like this because of a quirk.
a = 257
b = 257
a is b -> False
I think you don't want to map variables to integers direct unless they are at or under 8 bits in length. |
|
Date |
User |
Action |
Args |
2014-12-28 01:48:19 | Adam.Carruthers | set | recipients:
+ Adam.Carruthers |
2014-12-28 01:48:19 | Adam.Carruthers | set | messageid: <1419731299.6.0.137708787639.issue23124@psf.upfronthosting.co.za> |
2014-12-28 01:48:19 | Adam.Carruthers | link | issue23124 messages |
2014-12-28 01:48:18 | Adam.Carruthers | create | |
|