[issue22511] Assignment Operators behavior within a user-defined function and arguments being passed by reference or value

2014-09-28 Thread R. David Murray
R. David Murray added the comment: See also issue 20135. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue22511] Assignment Operators behavior within a user-defined function and arguments being passed by reference or value

2014-09-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm afraid that you are mistaken about Python's argument passing semantics. Arguments are *always* passed using the same semantics, and *never* using either pass-by-value or pass-by-reference. These two pages may help you understand why Python's argument pass

[issue22511] Assignment Operators behavior within a user-defined function and arguments being passed by reference or value

2014-09-28 Thread Mark Dickinson
Mark Dickinson added the comment: I'm afraid this bug tracker isn't really the appropriate place for this discussion, so I'm going to close this issue. You could open a discussion on the Python mailing list, here: https://mail.python.org/mailman/listinfo/python-list. -- nosy: +mark.d

[issue22511] Assignment Operators behavior within a user-defined function and arguments being passed by reference or value

2014-09-28 Thread Mohammed Mustafa Al-Habshi
New submission from Mohammed Mustafa Al-Habshi: hello every one, I was trying to understand the behavior of passing arguments in a function to differentiate how we can pass argument by value. Though it is a technique matter. However, the behavior of assignment operator += when using it with a