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 Toni Diaz
Recipients Toni Diaz
Date 2014-07-09.09:11:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404897112.14.0.409769296554.issue21943@psf.upfronthosting.co.za>
In-reply-to
Content
Python 2.7.3 (default, Mar 13 2014, 11:03:55) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a=['dog']
>>> b=a
>>> a
['dog']
>>> b
['dog']
>>> b.remove('dog')
>>> a
[]
>>> b
[]
>>>

When defining a list from another (b=a), in my opinion, I expect that all you do to one doesn't affect to the other one.
However, with the commands .remove & .append I don't see that (the definition b=a is bijective).
Should it work this way?

Thanks
History
Date User Action Args
2014-07-09 09:11:52Toni Diazsetrecipients: + Toni Diaz
2014-07-09 09:11:52Toni Diazsetmessageid: <1404897112.14.0.409769296554.issue21943@psf.upfronthosting.co.za>
2014-07-09 09:11:52Toni Diazlinkissue21943 messages
2014-07-09 09:11:51Toni Diazcreate