a = b = 1 just syntactic sugar?

Peter Hansen peter at engcorp.com
Thu Jun 5 13:56:30 CEST 2003


Asun Friere wrote:
> 
> ? a = 556; b = 556
> ? a is b
> 1

Hmm?  That one surprises me.  I wonder how the compiler is
treating that line...  I would have though ; basically had
the same effect as a line seperator.

-Peter




More information about the Python-list mailing list