What is a function parameter =[] for?

BartC bc at freeuk.com
Thu Nov 19 13:50:15 EST 2015


On 19/11/2015 18:26, Mark Lawrence wrote:
> On 19/11/2015 18:19, BartC wrote:

>>>> if you write A=B then something of B needs to have been copied into
>>>> A, even if it's just the reference that B contains. Otherwise it
>>>> would be
>>>> difficult to get A to refer to the same object as B.
>>>
>>> Please, PLEASE, go and read/watch Ned's PyCon talk (the one I linked
>>> you to earlier). Don't post another word on this subject until you
>>> comprehend what he is saying.
>

>> But what is it about my remarks above that isn't right?

>
> To summarize, it once again shows that you haven't got the faintest idea
> what you're talking about.

But you're not going to tell me what it is I got wrong!

I said that Python's "=" does a very shallow copy. And I stated that in 
A=B, something of B must be copied into A.

I (and probably others) would like to know why none of that is correct. 
But I suspect I'm not wrong.


-- 
Bartc





More information about the Python-list mailing list