Inconsistent list/pointer problem
Richard Brodie
R.Brodie at rl.ac.uk
Thu Feb 1 08:30:32 EST 2007
"Doug Stell" <celiadoug at mchsi.com> wrote in message
news:tcp3s2996ukp0439omj70pjug5r8diu8p1 at 4ax.com...
> I call the function, passing in a list as the input data. The function
> must manipulate and operate on a copy of that list's data, without
> altering the list in the calling routine.
Then you will want to make a copy:
listB = copy.deepcopy( listA)
More information about the Python-list
mailing list