Message349270
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. |
|
Date |
User |
Action |
Args |
2019-08-09 00:30:15 | skreft | set | recipients:
+ skreft |
2019-08-09 00:30:15 | skreft | set | messageid: <1565310615.1.0.816641824281.issue37797@roundup.psfhosted.org> |
2019-08-09 00:30:15 | skreft | link | issue37797 messages |
2019-08-09 00:30:14 | skreft | create | |
|