[issue7867] Proposed FAQ entry on pass-by-? semantics and the meaning of 'variable' in python
report at bugs.python.org
Sat Feb 6 22:47:12 CET 2010
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
The difference is that mutable objects may give the illusion of a pass-by-reference (because changes made inside the function are visible outside) whereas immutable objects give the illusion of pass-by-value (because you can't affect the original object in any way). This is also related to the confusion about assignment and what it really does.
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list