[Tutor] Copying list contents

Guillermo Fernandez guillermo.fernandez@epfl.ch
Tue, 30 Jul 2002 10:27:27 +0930


> > Python treates the lists like objects
> All python variables are references, regardless of the
> object to which they point.
Those this include variables of integer, strings and that kind of
objects?

> > but I'm working with lists of lists of lists...
> There is also a deepcopy module for copying nested lists.
Deep copy seems to work perfectly, thanks!

Guille