From: D T Date: 2003-06-24T03:23:27+09:00 Subject: Parallel Assignment # a,b=c,d=1,2 --0-1892244311-1056392605=:33681 Content-Type: text/plain; charset=us-ascii We can write: aa = bb = cc = 1 # no need aa = ( bb = ( cc = 1 ) ) Why we cannot write: a,b = c,d = e,f = 1,2 # error! x = (e,f = 1,2) # show x = [1,2] And this works: a,b = (c,d = (e,f = 1,2)) So my question is in that case, why we need ( ) to avoid error in parallel assignment? Explanation? Thanks. --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! --0-1892244311-1056392605=:33681 Content-Type: text/html; charset=us-ascii
We can write:
aa = bb = cc = 1  # no need  aa = ( bb = ( cc = 1 ) )
 
Why we cannot write:
a,b = c,d = e,f = 1,2  # error!
x = (e,f = 1,2)  # show x = [1,2]
And this works:
a,b = (c,d = (e,f = 1,2))
 
So my question is in that case,
why we need ( ) to avoid error in parallel assignment?
Explanation?
 
Thanks.


Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month! --0-1892244311-1056392605=:33681--