Message247239
When executing the following code, I would expect the 3 to be removed from "list_copy" while "list_original" remains unaltered. However, list_copy.pop() removes the 3 from both lists. If an index is specified for pop, this behavior occurs as well.
list_original = [1,2,3]
list_copy = list_original
list_copy.pop()
Please let me know if I can provide any other information. |
|
Date |
User |
Action |
Args |
2015-07-24 02:41:18 | annoywife | set | recipients:
+ annoywife, paul.moore, tim.golden, zach.ware, steve.dower |
2015-07-24 02:41:18 | annoywife | set | messageid: <1437705678.14.0.753601931437.issue24701@psf.upfronthosting.co.za> |
2015-07-24 02:41:18 | annoywife | link | issue24701 messages |
2015-07-24 02:41:17 | annoywife | create | |
|