tuples, index method, Python's design

Christoph Zwerschke cito at online.de
Sun Mar 2 16:40:51 EST 2008


Paul Boddie schrieb:
> On 2 Mar, 19:06, Alan Isaac <ais... at american.edu> wrote:
>> On April 12th, 2007 at 10:05 PM Alan Isaac wrote:
>>
>>> The avoidance of tuples, so carefully defended in other
>>> terms, is often rooted (I claim) in habits formed from
>>> need for list methods like ``index`` and ``count``.
>>> Indeed, I predict that Python tuples will eventually have
>>> these methods and that these same people will then defend
>>> *that* status quo.
> 
> You were more confident about this than I was. Still, nothing happens
> if no-one steps up to do something about it.

And nobody stepped up because it had been made very clear by Guido and 
others that they don't want tuples to grow methods.

I remember there had been ridiculously excessive threads about this, 
this probably being one of many others:
http://groups.google.de/group/comp.lang.python/browse_thread/thread/430a692bc634a04f/

I don't think this was very encouraging for people who wanted to do 
something about it.

Anyway, it's good to see this happened now. Thanks to Raymond.

-- Christoph



More information about the Python-list mailing list