copying a list

Anthony Doggett antdog at iname.com
Tue Aug 8 12:16:03 EDT 2000


lance>  is there an easy way to get a copy of a list instead of a
lance>  reference to that list?

b = a[:]

-- 
Anthony Doggett
AntDog at iname.com



More information about the Python-list mailing list