Imagine having a list like
L = [a, b, c, d]
and a class cl
with an attribute at
.
What I want to do is to set the to a value from that list without copying the value. For example, I want to set:
cl.at = L[1]
but the L[1]
to be a shallow copy of the list L
, so, if L[1]
changes
then cl.at
changes as well.