The � debate
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Sat May 10 03:48:27 EDT 2014
On Sat, 10 May 2014 17:10:29 +1000, Chris Angelico wrote:
> On Sat, May 10, 2014 at 3:58 PM, Gregory Ewing
> <greg.ewing at canterbury.ac.nz> wrote:
>> Steven D'Aprano wrote:
>>>
>>> some_function(x, y+1)[key].attribute[num](arg)[spam or eggs] = 42
>>>
>>> I'm pretty sure that it isn't common to call the LHS of that
>>> assignment a variable.
>>
>>
>> A better way of putting it might be "something in the data model that
>> can be assigned to".
>
> https://en.wikipedia.org/wiki/Assignment_(computer_science)
>
> Go ahead, start an edit war at that page over its use of "variable". :)
> Right there it talks about copying values into variables. So if Python
> has no variables, then either that article is inappropriate, or Python
> has no assignment either.
Python assignment doesn't copy values.
--
Steven D'Aprano
http://import-that.dreamwidth.org/
More information about the Python-list
mailing list