Python: Behavior of object in set operations
- by Josh Arenberg
I'm trying to create a custom object that behaves properly in set operations.
I've generally got it working, but I want to make sure I fully understand the implications. In particular, I'm interested in the behavior when there is additional data in the object that is not included in the equal / hash methods. It seems that in the 'intersection'…