For making a shallow copy of a list, which syntax is preferable:

>>> lst2 = lst1[:]

or

>>> lst2 = list(lst1)

?

-- 
John.
_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to