Open endolith opened 2 years ago
Also would be good if TrueTie had a __repr__
that showed the tied winners? Instead of <STAR.TrueTie at 0x188dc2885c8>
. If TrueTie({0, 1})
had a __repr__
of TrueTie({0, 1})
, it would fit the convention of "If at all possible, this should look like a valid Python expression that could be used to recreate an object with the same value"
Quick fix would be TrueTie([1,0]).tied ==TrueTie([1,0]).tied, but wouldn't work if elements are out of order. I'll think on the set vs list issue.
Tried changing to set in #17, seems to work well.
Currently this is False.
Probably should be True and probably TrueTie should be a subclass of
set
, similar to my comment on https://github.com/Equal-Vote/starpy/pull/17#issuecomment-1207539205?So that
TrueTie([1, 0]) == TrueTie((0, 1)) == TrueTie({1, 0, 1})
is also True.