a = b = 1 just syntactic sugar?

Kendear kendear at nospam.com
Tue Jun 3 20:32:24 CEST 2003


Batista, Facundo wrote:
> "b = 1" does not return 1, just returns b. a and b are the same object now
> (they are not just equal, they are the very same).

if b = 1 returns b, then why can't you say  a = (b = 1)  ?






More information about the Python-list mailing list