Other, maybe clearer, way to inspect references
id(a) == id(b)
Then reserve the use of is for bool or None.
Python has a concept of, Just don't do that. Which would be a great title for this topic thread.
Other, maybe clearer, way to inspect references
id(a) == id(b)
Then reserve the use of is for bool or None.
Python has a concept of, Just don't do that. Which would be a great title for this topic thread.