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
{{ message }}
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.
It appears that __hash__ is not overridden for Structs, which is probably not a good thing. They should either (a) be considered non-hashable as dicts are, or (b) have a __hash__ implementation that agrees with __eq__. The former is the more Pythonic, as mutable objects are not valid hash keys.
It appears that
__hash__
is not overridden for Structs, which is probably not a good thing. They should either (a) be considered non-hashable asdicts
are, or (b) have a__hash__
implementation that agrees with__eq__
. The former is the more Pythonic, as mutable objects are not valid hash keys.As an example, the
assert
below will fail:Instead, it should probably throw something like
TypeError: unhashable type: 'thriftpy.thrift.TPayload'
The text was updated successfully, but these errors were encountered: