-
-
Save y56/55f6fd58f59cad631f12019fa9e4032f to your computer and use it in GitHub Desktop.
= =
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
= = | |
https://robertheaton.com/2014/02/09/pythons-pass-by-object-reference-as-explained-by-philip-k-dick/ | |
This article makes things complicated. | |
Forget about the box metaphore in it. | |
Variablea are copied to functions by address. | |
Inside a function, while some operations (like .append()) are applied through dereferencing , | |
others like reassignment are done by assigning a new address. | |
That's it. Nothing more. | |
https://robertheaton.com/2014/02/09/pythons-pass-by-object-reference-as-explained-by-philip-k-dick/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment