[New-bugs-announce] [issue37619] update_one_slot() should not ignore wrapper descriptors for wrong type

Jeroen Demeyer report at bugs.python.org
Thu Jul 18 05:04:18 EDT 2019


New submission from Jeroen Demeyer <J.Demeyer at UGent.be>:

>>> class S(str):
...     __eq__ = int.__eq__
>>> S() == S()
True

The expectation is that this raises an exception because int.__eq__() is called on S instances.

----------
components: Interpreter Core
messages: 348108
nosy: jdemeyer
priority: normal
severity: normal
status: open
title: update_one_slot() should not ignore wrapper descriptors for wrong type
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37619>
_______________________________________


More information about the New-bugs-announce mailing list