tuples, index method, Python's design

Carsten Haese carsten at uniqsys.com
Sat Apr 7 16:27:20 CEST 2007


On Sat, 2007-04-07 at 06:45 -0700, bearophileHUGS at lycos.com wrote:
> Carsten Haese:
> > The lack of convincing use cases is still a pertinent reason today. Note
> > that the original poster on this thread did not present a use case for
> > tuple.index, they were only asking out of curiosity.
> > If you have a use case for tuple.index, please show it to me, and I'll
> > show you what you should be using instead of a tuple.
> 
> Maybe we can add such methods to the PyPy tuples for some time, to
> experimentally see if they make the language worse :-)

Adding useless features always makes a product worse. What's your use
case for tuple.index?

-Carsten





More information about the Python-list mailing list