Checking the Identity of Objects
In Python you use the
is operator to see if two names are really representing the same object. For example, if you create a variable,
obj, then assign it to
is operator will tell you that
obj really is
Become a Member to join the conversation.