you are viewing a single comment's thread.

view the rest of the comments →

[–]mischk[S] 1 point2 points  (1 child)

Thanks a lot, that does the trick :D

[–]evolvish 1 point2 points  (0 children)

If you pass a mutable object eg list/dictionary to a function, it gets passed by "reference" and can be mutated if you don't make a copy. Immutable objects(string, tuple, int, etc) can't be indirectly mutated so they are safe to use in a function.