Steven D'Aprano wrote:
Which definition of call-by-value? Certainly not the one that most people are familiar with, where c-b-v implies that calling a function with a large array will copy the entire array.
But that's only true in languages where *assigning* a large array will also copy the entire array. This does not happen in Python, therefore there is no reason to suppose that it will happen when passed as a parameter. Before you can understand parameter passing, whether by-value or by-reference, you first have to understand how assignment works *in the language concerned*, not some other language you happen to know previously. -- Greg -- http://mail.python.org/mailman/listinfo/python-list