On Sun, Aug 17, 2008 at 4:22 PM, Marcio Braga <mbraga0001 / gmail.com> wrote:
> Just to complement, as a contrast, the code below works as expected, or
> in other words, the content of matrix "a" is not changed when you change
> the content of matrix "b".
>
> b=[]
> a=[1]
> b[0]=a[0]     # explicitly set a single element and not the entire
> matrix
> b[0]=2*b[0]
> p a
>
> Marcio
>
>

Here you create explicitely two objects therefore : no problem whereas
on the first snippet, you only have one.


-- 
Frantisek ZACEK (zacek_f) -- SRS 2008