This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Daniel543
Recipients Daniel543
Date 2012-05-02.16:15:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335975316.5.0.356302155228.issue14707@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7.3 (default, Apr 20 2012, 22:44:07) 
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = ['1']
>>> b = []
>>> c = a
>>> b.append(a)
>>> a
['1']
>>> b
[['1']]
>>> c
['1']
>>> a = ['2']
>>> c.extend(a)
>>> b
[['1', '2']]
>>> c
['1', '2']
>>> a
['2']
>>> 

Is this wrong? I think the "b" should not change.
History
Date User Action Args
2012-05-02 16:15:16Daniel543setrecipients: + Daniel543
2012-05-02 16:15:16Daniel543setmessageid: <1335975316.5.0.356302155228.issue14707@psf.upfronthosting.co.za>
2012-05-02 16:15:15Daniel543linkissue14707 messages
2012-05-02 16:15:15Daniel543create