This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ElizabethU
Recipients ElizabethU, p-ganssle, serhiy.storchaka, xtreak
Date 2019-07-17.15:50:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563378653.55.0.188131474234.issue37555@roundup.psfhosted.org>
In-reply-to
Content
I feel like I agree with Paul here, unsurprising behavior from ANY is it matching anything, with no expectation that third party objects have to correctly have a return path for NotImplemented on their __eq__ method. ANY doesn't currently do that.

I've added a commit with couple other failing tests showing how using assertEqual is currently order sensitive when used with _Call or _CallList objects. I've got a work in progress fixing all three tests that just needs a little clean up, but think I might be able to lessen the complexity of it by adding Paul's idea of just special casing ANY directly, which may be smaller than the fix I have.

Thank you all for providing such great feedback so far, this is really interesting stuff to me, and a great first time submitting to Python experience so far.
History
Date User Action Args
2019-07-17 15:50:53ElizabethUsetrecipients: + ElizabethU, serhiy.storchaka, p-ganssle, xtreak
2019-07-17 15:50:53ElizabethUsetmessageid: <1563378653.55.0.188131474234.issue37555@roundup.psfhosted.org>
2019-07-17 15:50:53ElizabethUlinkissue37555 messages
2019-07-17 15:50:53ElizabethUcreate