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
Many IHM classes are hashable, as we stick them in dict to detect copies. This is potentially problematic as the classes are also mutable, so users of the library may be tempted to place objects in their own set or dict, modify them, and end up with bizarre behavior. We should probably fix this by removing the __hash__ method from these classes and handling copies in some other fashion (e.g. a mutable wrapper class similar to frozenset vs. set).
The text was updated successfully, but these errors were encountered:
Many IHM classes are hashable, as we stick them in
dict
to detect copies. This is potentially problematic as the classes are also mutable, so users of the library may be tempted to place objects in their ownset
ordict
, modify them, and end up with bizarre behavior. We should probably fix this by removing the__hash__
method from these classes and handling copies in some other fashion (e.g. a mutable wrapper class similar tofrozenset
vs.set
).The text was updated successfully, but these errors were encountered: