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 skreft
Recipients skreft
Date 2019-08-09.00:30:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565310615.1.0.816641824281.issue37797@roundup.psfhosted.org>
In-reply-to
Content
PEP 473 was recently rejected (https://mail.python.org/pipermail/python-dev/2019-March/156692.html) because it was too broad and was suggested to be broken down in smaller issues.

This issue is requesting the addition of the optional attribute `name` to `NameError`.

The idea of having a structured attribute is to allow tools to act upon these exceptions. For example you could imagine a test runner which detect typos and suggests the right name to use.

There is a current PR (https://github.com/python/cpython/pull/6271) adding this functionality, but it may need to be rebased as it has been awaiting a reply since April last year.
History
Date User Action Args
2019-08-09 00:30:15skreftsetrecipients: + skreft
2019-08-09 00:30:15skreftsetmessageid: <1565310615.1.0.816641824281.issue37797@roundup.psfhosted.org>
2019-08-09 00:30:15skreftlinkissue37797 messages
2019-08-09 00:30:14skreftcreate