improving HoppingKind object
I believe that HoppingKind
object can be improved in a way to provide __eq__
and __hash__
method. It would allow to use it as a dictionary
keys.
To be more precise, it can be used as a dict
key at the moment but one can only iterate over keys and values: it is impossible to access random element because ==
method between two (created in a same way) HoppingKind
objects returns False
.