tuples, index method, Python's design
Sun Apr 8 22:10:16 CEST 2007
Carsten Haese <carsten at uniqsys.com> writes:
> > Do you not see the gratuituous inconsistency between tuples and lists
> > as a useless feature? What is the use case for keeping it?
> When a new feature is requested, the burden of proof is on the requester
> to show that it has uses. The use case for not having tuple.index is
> that there are no use cases for having it. If that answer sounds absurd,
> it is because your question is absurd.
The use case has already been discussed. Removing the pointless
inconsistency between lists and tuples means you can stop having to
remember it, so you can free up brain cells for implementing useful
things. That increases your programming productivity.
More information about the Python-list