On Sat, Jun 25, 2011 at 7:02 AM, Terry Reedy <tjre...@udel.edu> wrote:
> If I have ever used this sort of multiple assignment, it has been for simple
> unambiguous things like "a = b = 0".

For which it's extremely useful. Initialize a whole bunch of variables
to zero... or to a couple of values:

minfoo=minbar=minquux=1000
maxfoo=maxbar=maxquux=0


There are times when I miss the "assignment is an expression" concept,
but I'd say this syntax covers 90% or more of use cases for assignment
expressions.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to