lists of variables

Lie Ryan lie.1296 at gmail.com
Sun Feb 21 05:25:03 EST 2010


On 02/21/10 15:21, Steven D'Aprano wrote:
>> > So it looks like variables in a list are stored as object references.
> Python doesn't store variables in lists, it stores objects, always.
> 
> Even Python variables aren't variables *grin*, although it's really 
> difficult to avoid using the term. Python variables are mappings between 
> names (strings) and objects, not memory locations.

Actually, no programming languages have used the term "variable"
correctly, as per its original mathematical definition.



More information about the Python-list mailing list