Feature or enhancement
Proposal:
Right now tracebacks look like this:
>>> math.log(2,-2)
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
math.log(2,-2)
~~~~~~~~^^^^^^
ValueError: expected a positive input
i.e. the whole list of parameters is highlighted.
But in many cases errors in C functions coming e.g. from input validation and related to very specific argument. I think we can pass this additional information with exception to get traceback like this instead:
>>> math.log(2,-2)
Traceback (most recent call last):
File "<python-input-1>", line 1, in <module>
math.log(2,-2)
~~~~~~~~ ^^
ValueError: expected a positive input
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Feature or enhancement
Proposal:
Right now tracebacks look like this:
i.e. the whole list of parameters is highlighted.
But in many cases errors in C functions coming e.g. from input validation and related to very specific argument. I think we can pass this additional information with exception to get traceback like this instead:
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response