Tuples

Remco Gerlich scarblac-spamtrap at pino.selwerd.nl
Tue Feb 1 14:13:43 EST 2000


Fredrik Lundh wrote in comp.lang.python:
> T = 1, 2, 3
> L = list(T)
> ... modify list in place
> T = tuple(L)
> 
> (note: this is more efficient than it may seem -- the
> list() and tuple() functions copy references, not the
> objects themselves).

Thanks! Never heard of those. Useful.


-- 
Remco Gerlich,  scarblac at pino.selwerd.nl

   This is no way to be
     Man ought to be free      -- Ted Bundy
       That man should be me



More information about the Python-list mailing list