Feature or enhancement
Proposal:
Add the same attributes to tomllib.TOMLDecodeError that json.JSONDecodeError also has, namely: msg, doc, pos, lineno, colno. This will help user facing apps show customized errors to users.
This draft PR in Tomli shows the proposed changes.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/69546
Linked PRs
Feature or enhancement
Proposal:
Add the same attributes to
tomllib.TOMLDecodeErrorthatjson.JSONDecodeErroralso has, namely:msg,doc,pos,lineno,colno. This will help user facing apps show customized errors to users.This draft PR in Tomli shows the proposed changes.
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/69546
Linked PRs
__init__args #126428