Message284539
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. |
|
Date |
User |
Action |
Args |
2017-01-03 06:27:46 | martin.panter | set | recipients:
+ martin.panter |
2017-01-03 06:27:46 | martin.panter | set | messageid: <1483424866.48.0.00115230231317.issue29138@psf.upfronthosting.co.za> |
2017-01-03 06:27:46 | martin.panter | link | issue29138 messages |
2017-01-03 06:27:45 | martin.panter | create | |
|