[Tutor] Copying lists
jfouhy@paradise.net.nz
jfouhy at paradise.net.nz
Mon May 9 02:35:01 CEST 2005
For making a shallow copy of a list, which syntax is preferable:
>>> lst2 = lst1[:]
or
>>> lst2 = list(lst1)
?
--
John.
More information about the Tutor
mailing list