Consider ```python foo = ["a", "b"] for i in ["c"]: foo.remove(i) ``` This throws with a useless error message: ``` Traceback (most recent call last): File "/Users/tdegeus/Downloads/t.py", line 3, in <module> foo.remove(i) ValueError: list.remove(x): x not in list ``` Instead it would be very helpful to show the value of `x`. Now one needs extra manual debugging, or extra lines of code. <!-- gh-linked-prs --> ### Linked PRs * gh-106455 * gh-116956 <!-- /gh-linked-prs -->