[Tutor] Copy of list
Thu, 8 Feb 2001 18:22:21 +0100
I filled a list with very informative data (for me, anyway 8-)). Before processing (like eliminating
the duplicates) I wanted to save the list.
mySavedList = myList
That doesn't work. I understand the problem. The copy is not the data but the reference. This
can be checked with id(mySavedList) which is the same as id(myList). I presume, I have to do
an explicit copy ('deep copy' is the correct name??).
Does anyknow the correct function of method to do the trick?