[Tutor] [Python-ideas] aliasing

Christopher King g.nius.ck at gmail.com
Thu Sep 1 22:10:53 CEST 2011


>
> ------------------------
> >>> list = [3,]
> >>> a = list
> >>> list[0] = 6
> >>> a[0]
> 3
> -------------------------
>
Slight error in my code. It should be.
------------------------
>>> list = [3,]
>>> a = list
>>> list[0] = 6
>>> a[0]
6
-------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20110901/cbc609b3/attachment.html>


More information about the Tutor mailing list