On Sunday 26 June 2005 05:39 am, Torsten Bronger wrote: > Hallöchen! > However, then you must forbid a=b=1 for assigning to two variables > at the same time.
Why? It's already handled as an exception in the syntax. In C, what you say makes sense, because "b=1" is an expression as well as an assignment. But I don't think Python reads it that way -- it just has code to recognize multiple assignment as a statement. I think I remember reading that in the Language Reference or something. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com -- http://mail.python.org/mailman/listinfo/python-list