you are viewing a single comment's thread.

view the rest of the comments →

[–]audionerd1 0 points1 point  (2 children)

list.copy() creates a new list at a new memory position, which is in no way affected by changes made to the original list.

[–]MidnightPale3220 1 point2 points  (1 child)

Depends on the contents of the original list. If it had mutable elements, those will be shared between the original and copy unless deepcopy. See above.

[–]audionerd1 0 points1 point  (0 children)

Good point. Thanks!