The � debate

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat May 10 05:31:48 EDT 2014


On Sat, 10 May 2014 11:18:59 +0300, Marko Rauhamaa wrote:

> In Python,
> 
>    x       is a variable, a memory slot that can be assigned to,


If your intention was to prove Ben Finney right, then you've done a 
masterful job of it. Python variables ARE NOT MEMORY SLOTS.

(Not even local variables, since that's an implementation detail which 
the language takes pains to hide from the caller. The abstraction leaks a 
bit, but not much.)



-- 
Steven D'Aprano
http://import-that.dreamwidth.org/



More information about the Python-list mailing list