Re: Lists and Tuples
From: Fredrik Lundh (fredrik_at_pythonware.com)
Date: 12/05/03
- Next message: Alan Kennedy: "Re: Web authentication"
- Previous message: Duncan Booth: "Re: Lists and Tuples"
- In reply to: Douglas Alan: "Re: Lists and Tuples"
- Next in thread: Douglas Alan: "Re: Lists and Tuples"
- Reply: Douglas Alan: "Re: Lists and Tuples"
- Reply: Arthur: "Re: Lists and Tuples"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 5 Dec 2003 10:25:52 +0100 To: python-list@python.org
Douglas Alan wrote:
> I disagree. You should use a tuple when you wish to not change the
> contents once you have constructed the sequence, and otherwise you
> should use a list.
> Fredrik Lundh actually called me names a couple years back for
> asserting this, but Python luminary (and rude fellow) or not, he is
> dead wrong.
I'm never dead wrong.
Guido van Rossum, "State of the Python Union", March 2003:
http://www.python.org/doc/essays/ppt/pycon2003/pycon2003.ppt
...
+ It's a matter of user education
+ Example: lists vs. tuples
this is often misrepresented as "tuple are readonly lists",
which is *wrong*
use cases are quite different
*but*... tuples also usable as readonly lists
...
I expect an apology.
</F>
- Next message: Alan Kennedy: "Re: Web authentication"
- Previous message: Duncan Booth: "Re: Lists and Tuples"
- In reply to: Douglas Alan: "Re: Lists and Tuples"
- Next in thread: Douglas Alan: "Re: Lists and Tuples"
- Reply: Douglas Alan: "Re: Lists and Tuples"
- Reply: Arthur: "Re: Lists and Tuples"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|