You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2005-04-10.17:30:04.000>created_at=<Date2005-04-09.22:10:45.000>labels= ['docs']
title="Missing def'n of equality for set elements"updated_at=<Date2005-04-10.17:30:04.000>user='https://github.com/smontanaro'
The documentation of the sets module doesn't describe the
properties of set elements that they must have to properly
work in sets (at least I didn't see it described). In creating a
set of instances, I had to sort of stumble around and
discover that the class needed to define both __eq__ and
__hash__. Either alone didn't seem to work. Perhaps I've
got it all wrong and there's a better way to do things. It would
be nice if the docs described things officially though.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: