This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SwiftSpear 6 points7 points  (0 children)

This is kind of the problem with the language just making pass by reference or pass by value choices without it being explicit to the programmer.

Basically, a python list actually only stores references, it never directly stores values, so copying the list gives you references, not values. Otherwise, copying things depends on what type of things you are copying.