tuples, index method, Python's design

Antoon Pardon apardon at forel.vub.ac.be
Tue Apr 10 15:29:59 CEST 2007

On 2007-04-10, Carsten Haese <carsten at uniqsys.com> wrote:
>> Adding the index method to tuples is not adding a feature. It is
>> removing a limitation.
> The non-existence of tuple.index is only a limitation if there is a need
> for the method to exist. Please prove that this need exists.

It doesn't because "need" is such a strong word, that just the fact that
you can write your own index function means the method isn't needed.

Antoon Pardon

More information about the Python-list mailing list