Hello,

Several libraries have complex objects but no comparison operators for them other than "is" which checks if we are comparing an object with itself.

It would be quite nice to be able to compare any two objects together.
I made this function in python to have a starting point https://gist.github.com/SebastienEske/5a9c04e718becd93b7928514e80f0211

I know that it needs some improvement to protect against infinite loops and I don't like the hardcoded check for strings, it should probably be a parameter that allows the function to directly check certain types.

What do you think?

Best regards,

Sébastien Eskenazi



Pixelz

15th Floor, Detech Tower 2 Building, 107 Nguyen Phong Sac,

Hanoi, Vietnam



Beautiful Images Sell Products
Learn eCommerce Photography and Image Editing Tips on the Pixelz Blog!