General question about Python design goals

bonono at gmail.com bonono at gmail.com
Sun Nov 27 22:20:35 EST 2005


Christoph Zwerschke wrote:
> >>For instance, I just wanted to use the index() method on a tuple which
> >>does not work. ...
>
> Aahz wrote:
>
> > Because Guido believes that tuples should be primarily used as
> > lightweight replacements for C structs.  Therefore they have minimal
> > functionality.
>
> But the problem is that the tutorials and manuals give the impression
> that the difference between lists and tuples is only mutablity versus
> immutability. They don't talk about such considerations and honestly
> speaking even now I know that it does seem more plausible for me.
That is the problem of the tutorial or manual, don't read them as if
they are ISO specs.




More information about the Python-list mailing list