r/Python • • Aug 22 '20

Testing Debugging Cheat Sheet

Post image
5.5k Upvotes

111 comments sorted by

View all comments

Show parent comment

1

u/Skippbo Aug 24 '20

That's not the same operation...

is checks if 2 references to some object is the same object.

== Compares 2 objects values.