[EMAIL PROTECTED] a écrit :
> On Apr 20, 4:37 pm, John Machin <[EMAIL PROTECTED]> wrote:
> 
>>One inessential but very useful thing about tuples when you have a lot
>>of them is that they are allocated the minimum possible amount of
>>memory. OTOH lists are created with some slack so that appending etc
>>can avoid taking quadratic time.
> 
> 
> Speaking of inessential but very useful things, I'm also a big fan of
> the tuple swap...

Which relies on unpacking, which also works with lists....
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to