A question on modification of a list via a function invocation

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Sep 5 09:37:15 EDT 2017


Steve D'Aprano wrote:
> On Tue, 5 Sep 2017 02:51 am, Stefan Ram wrote:
 >
>>  I am assuming that there are two argument passing mechanismss
>>  in the languages mentioned by me (C, C++, VBA, C#, Java,
>>  JavaScript, and Python):
>>
>>- pass by aliassing (reference)
>>- pass "as if by assignment"
> 
> That assumption is wrong.

How is it wrong? What parameter passing mechanism in any
of those languages is not either by aliasing or by
assignment?

-- 
Greg



More information about the Python-list mailing list