tuples, index method, Python's design

Steve Holden steve at holdenweb.com
Fri Apr 13 11:46:10 EDT 2007


Brian van den Broek wrote:
> Antoon Pardon said unto the world upon 04/13/2007 02:46 AM:
>> On 2007-04-12, Steven D'Aprano <steve at REMOVE.THIS.cybersource.com.au> wrote:
> 
> <snip>
> 
>>> So much fuss over such a little thing... yes it would be nice if tuples
>>> grew an index method, but it isn't hard to work around the lack.
>> Yes it is a little thing. But if it is such a little thing why do
>> the developers don't simply add it?
> 
> It's wafer thin!
> 
Quite. [The Python language adds an index() method to tuples and 
promptly EXPLODES]. Thank you, Mr. Creosote.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb     http://del.icio.us/steve.holden
Recent Ramblings       http://holdenweb.blogspot.com




More information about the Python-list mailing list