references ???
Emile van Sebille
emile at fenx.com
Fri Nov 2 09:02:19 EST 2001
"Thomas Weidner" <wolf359_ at gmx.net> wrote in message
news:pan.2001.11.02.14.36.42.276.3445 at gmx.net...
<snip>
>
> Interesting....
> Is this also possible for single values like ints ?
No. Only mutable types.
> How do i make clear if i want a copy of a or a reference to it ?
Use copy.deepcopy. Or use slice notation for simple lists eg = lst[:], or
the copy method of dicts.
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list