[issue5495] ValueError exception of tuple.index(x) gives imprecise error message

2009-03-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r70385. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue5495] ValueError exception of tuple.index(x) gives imprecise error message

2009-03-15 Thread STINNER Victor
STINNER Victor added the comment: Attached patch fixes the error message. -- keywords: +patch nosy: +haypo Added file: http://bugs.python.org/file13339/not_in_tuple.patch ___ Python tracker

[issue5495] ValueError exception of tuple.index(x) gives imprecise error message

2009-03-15 Thread Retro
New submission from Retro : >>> t = (0, 1, 2, 3, 4, 5, 6, 7) >>> t.index(8) Traceback (most recent call last): File "", line 1, in ValueError: tuple.index(x): x not in list The error message "x not in list" should have been "x not in tuple". Please fix the error message of the index method of