a = b = 1 just syntactic sugar?

Kendear kendear at nospam.com
Tue Jun 3 14:32:24 EDT 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