-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
type-featureA feature request or enhancementA feature request or enhancement
Description
Bug report
Bug description:
().index(0) # outputs "tuple.index(x): x not in tuple"
[].index(0) # outputs "0 is not in list"i think it'd be useful to normalize them to have the same value error, in tuple you can see that the item's value or name isn't even mentioned, unlike in list that the item's value is mentioned, although the name is not.
CPython versions tested on:
3.11
Operating systems tested on:
Windows
Linked PRs
Eclips4, nekonekun and vlkorsakov
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement