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 Adam.Carruthers
Recipients Adam.Carruthers
Date 2014-12-28.01:48:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1419731299.6.0.137708787639.issue23124@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-12-28 01:48:19Adam.Carrutherssetrecipients: + Adam.Carruthers
2014-12-28 01:48:19Adam.Carrutherssetmessageid: <1419731299.6.0.137708787639.issue23124@psf.upfronthosting.co.za>
2014-12-28 01:48:19Adam.Carrutherslinkissue23124 messages
2014-12-28 01:48:18Adam.Carrutherscreate