Why '==' ??

Nicolas Fleury nid_oizo at yahoo.com_remove_the_
Tue Mar 30 12:34:48 EST 2004


JCM wrote:
> a = b = c
> a = b == c

In fact, it is very funny to see the effect of a=b=c in Basic (or at 
least in the Microsoft implementation I know of).

a = 2
b = 3
c = 3
a = b = c
a is assigned 1, which is the result of comparison of b and c.  So in 
Basic, the first = is like = in Python, and the other are like ==.  This 
is horrible...



More information about the Python-list mailing list