Opened 9 years ago

Last modified 8 years ago

#26083 closed Cleanup/optimization

__eq__, __hash__ and Python 3 — at Version 1

Reported by: Mads Jensen Owned by: nobody
Component: Core (Other) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

I ran python -Werror runtests.py for DRF, and noticed quite a lot of warnings about __eq__ and __hash__, and then checked Django's repository.

DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x

Change History (1)

comment:1 by Tim Graham, 9 years ago

Description: modified (diff)

Can you point to where the errors are coming from? I'm not aware of any deprecation warnings when running Django's test suite.

Note: See TracTickets for help on using tickets.
Back to Top