#30651: __eq__ should return NotImplemented when equality cannot be checked.
-------------------------------------+-------------------------------------
Reporter: Elizabeth Uselton | Owner: Elizabeth
Type: | Uselton
Cleanup/optimization | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* type: Bug => Cleanup/optimization
* component: Database layer (models, ORM) => Core (Other)
* version: 2.2 => master
* stage: Unreviewed => Accepted
Comment:
Thanks for this ticket, sounds reasonable. We should be consistent and
make this change also for other classes e.g. `Migration`,
`CheckConstraint`, `UniqueConstraint`, `BaseValidator` etc. (check
basically all `__eq__()` methods).
--
Ticket URL: <https://code.djangoproject.com/ticket/30651#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/068.2314815e355ce4fb95015e76d68cb4ac%40djangoproject.com.