Newbie References Question

Guy Rabiller grabiller at
Wed Sep 25 16:24:56 CEST 2002


let say I have:
i1 = 1
i2 = 2
p = [i1,i2]

How can I have:
rather than
p=[**i1,**i2] as it is curently ?

( Sorry for this nasty hybrid syntax )

Textualy, how if I want that p[0] refere to the 'i1' container, and not to
the refererence it contains ?

What I want is that if now I set:
i1 = 4
that automaticaly:
p -> [4,2]
and not keeping [1,2]

Thanks in advance.

guy rabiller
3d animator / td
grabiller at

More information about the Python-list mailing list