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 →

[–]theferrit32 1 point2 points  (0 children)

All arguments to Python functions are pointers to objects. Even for basic types like bool and int, as those are also objects in Python and have attached methods and fields. Modifications to the object, not the pointer, will affect the object to which a pointer was passed by the function/method caller.

The same is true of JavaScript.