Variables and values [was Re: why () is () and [] is [] work in other way?]

Steven D'Aprano steve+comp.lang.python at pearwood.info
Fri Apr 27 13:39:16 EDT 2012


On Fri, 27 Apr 2012 10:15:32 -0700, Adam Skutt wrote:

> If I write a program in Python that treats variables as if they were
> values, it will be incorrect.

I'm sorry, it is unclear to me what distinction you are making between 
variables and values. Can you give simple examples of both incorrect and 
correct code demonstrating what you mean?

(I know what distinction *I* would make, but I'm not sure if it is the 
same one you are making.)


-- 
Steven



More information about the Python-list mailing list