-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed as not planned
Closed as not planned
Copy link
Labels
type-featureA feature request or enhancementA feature request or enhancement
Description
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
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement