Karthikeyan Singaravelan added the comment:
This is a duplicate of issue33560. See also issue13349 which is the original
duplicate.
--
nosy: +xtreak
resolution: -> duplicate
stage: -> resolved
status: open -> closed
superseder: -> Non-informative error message in index() and
New submission from Oscar :
When trying to retrieve the index of an element that is not in a tuple the
error message of ValueError is not showing the value looking for but instead a
static message tuple.index(x): x not in tuple
>>> b = (1, 2, 3, 4)
>>> b.index(5)
Traceback (most recent call