Closed thisisrandy closed 3 years ago
Closing per discussion in #53
I was about to say your tests are likely still useful so please keep the branch, but it seems GitHub will remember the diff here, happily.
I just wanted to start from scratch in a new and appropriately-named branch. Sorry for the confusion. Please see #56
This is an implementation of the first idea to address #53. There are two things I don't like about it:
cmp_internals
, it also affects iteration, sinceeq
,order
, anditer
all make use of__tuple__
under the hood. I think a sensible interface would be to also haveiter_internals
to controliter
behavior separately, but that involves either storing two versions of__tuple__
when the two options don't agree or filtering a single version containing internals on the fly as necessary, both of which have overhead. Thoughts would be appreciated.cmp_internals=False
to get all the tests usingEpsilon
to work). The easy fix is just to make itFalse
by default, but as I argue in #53, I believe it should beTrue
by default in order to agree withdataclasses
, not to mention your own docs :grin:. Again, thoughts would be appreciated.