Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Python you never deal with an object itself, just a reference to it, so you can change the value of any mutable object you pass to a function, lists and dictionaries are just a couple of examples of these.

The problem (discussed by the article) is that "pass-by-reference" is a term that is used a couple of different ways. By someone's definition, this property of Python objects might cause them to consider the calls to pass-by-reference, but the way the author defined it in this article they are not.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: