conventions/requirements for 'is' vs '==', 'not vs '!=', etc

notnorwegian at yahoo.se notnorwegian at yahoo.se
Mon May 19 23:34:22 EDT 2008


i am confused.

x=5
y=5

x==y -> True
x is y -> True

shouldnt x is y return False since they shouldnt(dont?) point to the
same place in memory, they just store an equal value?




More information about the Python-list mailing list