[Python-ideas] aliasing

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


Wrong list again

On Thu, Sep 1, 2011 at 4:10 PM, Christopher King <g.nius.ck at gmail.com>wrote:

> ------------------------
>> >>> 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/python-ideas/attachments/20110901/4b39a828/attachment.html>


More information about the Python-ideas mailing list