Variables

Robert Kern rkern at ucsd.edu
Sun Apr 24 06:52:54 EDT 2005


Mike Meyer wrote:
> Robert Kern <rkern at ucsd.edu> writes:
> 
>>>Could I honestly argue this to him? From what basis do I argue that
>>>it is not an equation?
>>
>>It's his responsibility to show that it *is* an equation.
>>
>>x = x + 1
>>
>>Equation? I think not.
> 
> 
> I think it is. One equation in one unknown. The solution set for x is
> {}.
> 
> As a logical equation, it has the value false (just like 0 = 1).

Okay, okay, fair enough. But that interpretation has no correspondence 
with the behavior of that statement in a Python program. x always has a 
value (presuming it had one before the statement and no exceptions were 
raised during the addition operation).

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list