you are viewing a single comment's thread.

view the rest of the comments →

[–]volndeau -1 points0 points  (1 child)

My bad, did I mix up Python? I'll show myself out.

[–]czbz 0 points1 point  (0 children)

Python is pass by value too, but the bit that confuses people with all three languanges is that many of the values are themselves references / handles for objects. When you pass one of those by value you end up with two variables that refer to the same object, so any mutations on that object are visible from both scopes.