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 steven.daprano
Recipients SylvainDe, serhiy.storchaka, steven.daprano, vstinner, xtreak
Date 2019-02-18.23:13:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550531606.57.0.753918658038.issue36026@roundup.psfhosted.org>
In-reply-to
Content
Do I correctly understand the reported problem here?

set.add(0) correctly raises TypeError in each case, but:

(1) the exception message changes between versions;

(2) and also changes depending on whether or not sys.trace is active.

I don't think the exception message (as opposed to the exception type) is part of the public API. This means it can change without warning, at any time, so long as it is sensible and human readable.

Unless there is something documenting the precise wording used in this case, guaranteeing that it will be kept stable, I don't think this should be considered a regression or a bug. Do you disagree?
History
Date User Action Args
2019-02-18 23:13:26steven.dapranosetrecipients: + steven.daprano, vstinner, serhiy.storchaka, SylvainDe, xtreak
2019-02-18 23:13:26steven.dapranosetmessageid: <1550531606.57.0.753918658038.issue36026@roundup.psfhosted.org>
2019-02-18 23:13:26steven.dapranolinkissue36026 messages
2019-02-18 23:13:26steven.dapranocreate