26 Mar
2002
26 Mar
'02
12:22 p.m.
Milos Prudek wrote:
Good tip. It is also possible to assign "y=x[0:]", and voila, y is data copy, not a reference, and it is independent.
An ordinary copy by assignment goes only 1 level deep. if the objects nest deeper, use deepcopy to get a true copy. ------------------------------------------------------------- Who's got only a hammer sees the world as a nail hans augustin (software developer) hans@beehive.de beehive elektronische medien GmbH http://www.beehive.de phone: +49 30 847-82 0 fax: +49 30 847-82 299