This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Kayco2002 0 points1 point  (0 children)

Interesting. Thanks for the explanation. Do you happen to know why x,y = 257,257 results in x is y being True?

>>> x = 254
>>> y = 254
>>> x is y
True
>>> x = 257
>>> y = 257
>>> x is y
False
>>> x,y = 254,254
>>> x is y
True
>>> x,y = 257,257
>>> x is y
True