Message 335896 - Python tracker

Message335896

Author serhiy.storchaka
Recipients SylvainDe, methane, serhiy.storchaka, steven.daprano, vstinner, xtreak, yselivanov
Date 2019-02-19.07:43:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550562192.55.0.923943303047.issue36026@roundup.psfhosted.org>
In-reply-to
Content
Looks this is due to the method calls optimization (issue26110). We now avoid to create a temporary bound method, and an error with different message is raised on this path.

>>> set.add(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: descriptor 'add' requires a 'set' object but received a 'int'
>>> set.add.__get__(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: descriptor 'add' for 'set' objects doesn't apply to 'int' object
History
Date User Action Args
2019-02-19 07:43:12serhiy.storchakasetrecipients: + serhiy.storchaka, vstinner, steven.daprano, methane, yselivanov, SylvainDe, xtreak
2019-02-19 07:43:12serhiy.storchakasetmessageid: <1550562192.55.0.923943303047.issue36026@roundup.psfhosted.org>
2019-02-19 07:43:12serhiy.storchakalinkissue36026 messages
2019-02-19 07:43:12serhiy.storchakacreate