Closed mxmeinhold closed 4 years ago
Adds __hash__(), __eq__(), and __repr__() to CSHMember objects.
__hash__()
__eq__()
__repr__()
Without __eq__() things like list or set differencing don't work, and __hash__() goes along with __eq__().
Also adds __repr__() because I find dn to be more helpful than the memory address of a CSHMember instance, along the lines of #22.
I'm running python 3.8
Sorry for the slow review. The changes adding new functions here LGTM, but please take a look at my other comments about splitting up commits into granular related pieces.
What?
Adds
__hash__()
,__eq__()
, and__repr__()
to CSHMember objects.Why?
Without
__eq__()
things like list or set differencing don't work, and__hash__()
goes along with__eq__()
.Also adds
__repr__()
because I find dn to be more helpful than the memory address of a CSHMember instance, along the lines of #22.Caveats
I'm running python 3.8