What is the pythonic way to test whether two objects are the same, not just equal
What is the pythonic way to test whether two objects are the same, not just equal Question: My solution has been to make the object’s address into a string, which should always be unique. Below is a case where it works both ways, comparing the objects and comparing the values of str(object_a) and str(object_b). >>> …