tuples, index method, Python's design

Mel Wilson mwilson at the-wire.com
Sun Apr 8 11:27:24 EDT 2007


7stud wrote:
> On Apr 7, 8:27 am, Carsten Haese <cars... at uniqsys.com> wrote:
>> 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
> facility.

Actually, I've found the use cases for list.index to be kind of thin. 
  Long before I think "Which one of these items is a 3?", I seem to 
have thought "dictionary".

	Cheers,		Mel.




More information about the Python-list mailing list