tuples, index method, Python's design
bbxx789_05ss at yahoo.com
Sat Apr 7 21:18:57 CEST 2007
On Apr 7, 8:27 am, Carsten Haese <cars... at uniqsys.com> wrote:
> On Sat, 2007-04-07 at 06:45 -0700, bearophileH... 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?
I'll trade you an index method for tuples for the whole complex number
More information about the Python-list