Possible Duplicate:
Python βisβ operator behaves unexpectedly with integers
in python 2.6.6 when I use int() to convert a string to a number the below code doesn't behave correct if the string is 257 or larger.
curr = int("256")
myint = int("256")
if curr is myint:
print("true")
else:
print("false")
this returns true which is correct
curr = int("257")
myint = int("257")
if curr is myint:
print("true")
else:
print("false")
this returns false ???