š?]@do we need ==?

Carsten Gaebler news at snakefarm.org
Mon Dec 9 09:24:24 EST 2002


John Roth wrote:

>>Why can't we do:
>>
>>if a = 1:
>>    print "Foo"
>>
>>instead of
>>
>>if a == 1:
>>   print "Bar"

Because then you could not distinguish

a = b = 1

from

a = b == 1

cg.




More information about the Python-list mailing list