Ed Leafe wrote:
> On Nov 11, 2006, at 10:52 AM, Carl Karsten wrote:
> 
>> not to mention I still don't
>> understand the difference between [1,2,3] and (1,2,3)  even though  
>> I understand
>> how to use them.
> 
>       On the practical side, one is mutable and the other is fixed. If you  
> have a set of things that you need to add to, remove from, or  
> otherwise manipulate, use a list. Otherwise, use a tuple. Tuples have  

            V V V V V V

> > > > much lower overhead. < < < <

          ^ ^ ^ ^ ^ ^ ^ ^

bam!  that is the part that I was missing.

I kept thinking "a tuple is read only.  I can see the value in that, but there 
has to be more to it then that."

I kept having this feeling it was like 2 kinds of string construction:

x='c'+'a'+'r'+'l'
x='carl'

"one of those is pointless!"

And all those thoughts seemed so out of line with the rest of Python.

Carl K

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to