INADA Naoki <songofaca...@gmail.com> added the comment:
> Thus, even if this eventually deserves to be closed as a non-issue, I'd > rather go on the safe side and double check if this is the desirable > behaviour or if something went wrong with the commits previously mentioned. As Serhiy mentioned, this error message is raised from optimization path. Nothing went wrong. Error messages are vary depending on internal C code paths. So this is not an bug or issue. People must not rely on error message. On the other hand, I don't oppose to making error messages more consistent. It improve code health, like fixing typos in C comment which Python user doesn't see. ---------- components: +Interpreter Core title: Different error message when sys.settrace is used (regressions) -> Different error message when sys.settrace is used type: behavior -> versions: -Python 3.7 _______________________________________ 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