-
-
Notifications
You must be signed in to change notification settings - Fork 32k
Missing carets when reporting an "object is not callable" error #128832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello! Lines 712 to 723 in bbd3300
It looks like intended behavior, cc @pablogsal |
Ah, yes, this is expected. See #99180. |
Yes, this is how it works now, but it's hard to see why assigning to a failing subscript ( |
Please take a look at the #99180. |
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Bug description:
There is a minor inconsistency between the way "not subscriptable" and "not callable" errors are reported.
When an object is not subscriptable, the exception trace includes the carets ~ and ^ for the subscript value and slice.
The carets are also displayed if the attempted subscript is assigned
It is the same when an object is not callable
but when the attempted call is assigned, we lose the carets
instead of the expected
CPython versions tested on:
3.13
Operating systems tested on:
Windows
The text was updated successfully, but these errors were encountered: