SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

gh-121288: Make error message for index() methods consistent (GH-121395)

Make error message for index() methods consistent

Remove the repr of the searched value (which can be arbitrary large)
from ValueError messages for list.index(), range.index(), deque.index(),
deque.remove() and ShareableList.index().  Make the error messages
consistent with error messages for other index() and remove()
methods.
S
Serhiy Storchaka committed
8ecb8962e33930dd56d72004a59336d4b00fce22
Parent: 0e77540
Committed by GitHub <noreply@github.com> on 7/5/2024, 5:50:45 PM