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
An other approach for hashing VersionInfo (differently than hashing it's string representation) could be to get a dict from VersionInfo but dict are not hashable (only immutable objects are hashable according https://stackoverflow.com/questions/13264511/typeerror-unhashable-type-dict).
So we can convert dict to frozenset using
Activity
s-celles commentedon May 13, 2018
An other approach for hashing
VersionInfo(differently than hashing it's string representation) could be to get a dict fromVersionInfobut dict are not hashable (only immutable objects are hashable according https://stackoverflow.com/questions/13264511/typeerror-unhashable-type-dict).So we can convert dict to frozenset using
and called
__hash__of thisfrozensetHere is an example:
s-celles commentedon May 13, 2018
A last approach (and probably simpler) could be to get a tuple from a VersionInfo
Implements __str__ and __hash__ (#75)