When I do
a = "myString"
b = "myString"
a is b
> True
and this is true if the strings are identical, no matter the length. however, when I add a whitespace in there, the identity is no longer the same. so
a = "my string"
b = "my string"
a is b
> False
Why is this happening? how is the whitespace affecting the string in such a way that the identities are no longer the same?
is this an issue only in python 2.7?