tuples, index method, Python's design

Georg Brandl g.brandl at gmx.net
Mon Apr 9 09:41:48 CEST 2007

Paul Rubin schrieb:
> Carsten Haese <carsten at uniqsys.com> writes:
>> Will tuples also get a sort method? What about append and extend? pop?
>> __iadd__? __delslice__?
> They are immutable so they won't get .sort() etc.  sorted(...) already
> works on them.
>> How many brain cells are actually freed up by not having to remember
>> that *one* method that you'd never use doesn't exist?
> I dunno but I do know that Ruby is attracting a lot of potential Python
> users because it apparently has fewer of these inconsistencies.

It remains to be proven that it is an inconsistency, rather than a design

>  A big
> web site I hang out on decided to do a software rewrite (currently using
> a huge perl script) and evaluated a bunch of possible approaches.  In
> the final decision, Ruby/Rails won out over Python/Django.

Given that so many web sites still decide to (re)write in PHP, I don't think
that is much of an argument.


More information about the Python-list mailing list