You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[1]: foo = ["a", "b"]
[2]: for i in ["c"]:
...: foo.remove(i)
...:
Traceback (most recent call last):
Code block [2], line 2
foo.remove(i)
ValueError: list.remove(x): x not in list
Friendly-traceback does not know the cause of this error.
[3]: where()
Exception raised on line 2 of code block [2].
1| for i in ["c"]:
> 2| foo.remove(i)
foo: ['a', 'b']
i: 'c'
foo.remove: <builtin method remove of list object>
Given that I have access to all the variable values at this point, it should be fairly straightforward to provide a helpful hint.
Consider the following
Given that I have access to all the variable values at this point, it should be fairly straightforward to provide a helpful hint.
Source: python/cpython#96844
The text was updated successfully, but these errors were encountered: