--- [EMAIL PROTECTED] wrote: > For making a shallow copy of a list, which syntax is preferable: > > >>> lst2 = lst1[:] > > or > > >>> lst2 = list(lst1) > > ?
I guess my personal preference would be for the first option. I'm not sure if there is an officially blessed way to go about it, though. Try one, and if somebody starts shouting at you, switch to the other ;-) Kind Regards, Brian Wisti http://coolnamehere.com/ _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor