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 methane
Recipients SylvainDe, methane, serhiy.storchaka, steven.daprano, vstinner, xtreak, yselivanov
Date 2019-02-19.10:11:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550571075.85.0.739220690334.issue36026@roundup.psfhosted.org>
In-reply-to
Content
@Serhiy Error messages are not changed in 3.7.  They are different from 3.6.
Optimization in 3.7 changed "code path", not error message.
So it's difficult to fix this without breaking existing behavior.

Python 3.6.7 (default, Dec 18 2018, 17:32:18)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
>>> 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 10:11:15methanesetrecipients: + methane, vstinner, steven.daprano, serhiy.storchaka, yselivanov, SylvainDe, xtreak
2019-02-19 10:11:15methanesetmessageid: <1550571075.85.0.739220690334.issue36026@roundup.psfhosted.org>
2019-02-19 10:11:15methanelinkissue36026 messages
2019-02-19 10:11:15methanecreate