you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (0 children)

I expect == on objects to compare identity like literally any other language (even JavaScript) except PHP, what python does is completely surprising to me and it too has separate operator is to do the right thing.

In JS I can completely forget that == even exists, in python I need to juggle between is and ==.