[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, it is. Thank you Karthikeyan! -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Non-informative error message in index() and remove() functions ___ Python tracker

[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > And seems that this issue is a duplicate of an old issue with a long > discussion and an unfinished patch, but currently I cannot find that issue. possibly duplicate of issue13349 which was rejected ? -- nosy: +xtreak ___

[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thus is definitely is not related to Argument Clinic. And seems that this issue is a duplicate of an old issue with a long discussion and an unfinished patch, but currently I cannot find that issue. -- components: -Argument Clinic type: behavior -

[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-26 Thread SilentGhost
SilentGhost added the comment: This seems to be related to argument clinic work (issue 20186 and issue 20185). -- components: +Argument Clinic nosy: +SilentGhost, larry ___ Python tracker ___

[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-26 Thread SilentGhost
Change by SilentGhost : -- components: +Interpreter Core -Tests nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue36442] Different ValueError for the same operation in List and Tuple

2019-03-26 Thread Hardik
New submission from Hardik : I am curious why ValueErrors are different in List and Tuple when I try to get an index. ValueError of a list returns in well format with actual argument "ValueError: 'ITEM' is not in list", whereas tuple returns something like this "ValueError: tuple.index(x): x