cpython/Misc/NEWS.d/next/Core and Builtins/2024-07-05-11-29-27.gh-issue-121288.lYKYYP.rst

:exc:`ValueError` messages for :meth:`!list.index`, :meth:`!range.index`,
:meth:`!deque.index`, :meth:`!deque.remove` and
:meth:`!ShareableList.index` no longer contain the repr of the searched
value (which can be arbitrary large) and are consistent with error messages
for other :meth:`!index` and :meth:`!remove` methods.