Waffling (was Re: single-line terinary operators considered harmful)
Erik Max Francis
max at alcyone.com
Thu Mar 6 17:00:12 EST 2003
Stephen Horne wrote:
> I'm not sure I understand it, but I imagine it has to do with '='
> being n-ary (n >= 2) non-associative (rather than binary
> right-associative). Maybe the assigns are done left-to-right, even
> though the rightmost item is the source and must be evaluated first?
Yes, it's because Python evaluates changed assignments from left to
right.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/ \ History is a bucket of ashes.
\__/ Carl Sandburg
HardScience.info / http://www.hardscience.info/
The best hard science Web sites that the Web has to offer.
More information about the Python-list
mailing list