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 martin.panter
Recipients martin.panter
Date 2017-01-03.06:27:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483424866.48.0.00115230231317.issue29138@psf.upfronthosting.co.za>
In-reply-to
Content
Normally there is a Python 3 compatibility warning emitted when a class is based on object, implements __eq__(), but does not define __hash__():

$ python -3 -c 'class C(object): __eq__ = lambda self, other: True'
-c:1: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x

But when warnings are raised as exceptions, this warning seems to be suppressed:

$ python -3 -Werror -c 'class C(object): __eq__ = lambda self, other: True'

Perhaps there is bad exception handling at the warn() call site.
History
Date User Action Args
2017-01-03 06:27:46martin.pantersetrecipients: + martin.panter
2017-01-03 06:27:46martin.pantersetmessageid: <1483424866.48.0.00115230231317.issue29138@psf.upfronthosting.co.za>
2017-01-03 06:27:46martin.panterlinkissue29138 messages
2017-01-03 06:27:45martin.pantercreate