gleki at gol.ge
Tue Oct 23 22:59:01 CEST 2001
and the copy.copy() function did not help:(((((
Steve Holden wrote:
> "Giorgi Lekishvili" <gleki at gol.ge> wrote in message
> news:3BD5BCDF.B40C1422 at gol.ge...
> > Hi folks!
> > My problem is the following:
> > I want to save initial data matrix, as e.g., follows
> > self.Mdata=Matr
> > In the same time I need a matrix, which is used and processed. The
> > latter is created as follows
> > self.Mactual=self.Mdata
> > No the problem is, that, when I have finished to use the Mactual matrix,
> > self.Mdata is always changed and equals the final Mactual matrix.
> > What is the systematic solution of the problem?
> > Thanx in advance,
> > Giorgi
> > PS. I use Numeric module.
> This is because Python variable bindings are actually references. You
> probably need to make a copy of the matric. See if the copy module (and
> particularly copy.deepcopy()) will help.
More information about the Python-list