Multi-dimensional list initialization
steve+comp.lang.python at pearwood.info
Thu Nov 8 04:47:40 CET 2012
On Thu, 08 Nov 2012 00:30:53 +0000, Oscar Benjamin wrote:
>> Every now and again I come across somebody who tries to distinguish
>> between "call by foo" and "pass by foo", but nobody has been able to
>> explain the difference (if any) to me. When you CALL a function, you
>> PASS values to it. Hence the two terms are effectively synonyms, and
>> both refer to the evaluation strategy when binding arguments to
>> If you believe that is incorrect, can you point me to something
>> explaining the difference?
> Did you also miss MRAB's post above? It made sense to me.
You mean MRABs post which I replied to?
Yes, I must have missed it :-P
But seriously, no I didn't miss it. He doesn't give any evidence that
there is a difference between "call by ..." and "pass by ..." when
talking about binding arguments to formal parameters. His objection to
"call by ..." is that it doesn't make it clear that the evaluation rules
apply to simple binding/assignment as well as calling functions.
More information about the Python-list