INADA Naoki <songofaca...@gmail.com> added the comment:
@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 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36026> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com