Why not a, b += i, j? (augmented assignment via tuple unpacking)

Steven Rumbalski srumbalski at prodigy.net
Tue Nov 26 15:54:02 EST 2002


In python I can write:

a, b = i, j

but the following is not legal:

a, b += i, j

Is there a reason that allowing this would be bad?  Why does Python forbid 
this?

Thanks,

Steven Rumbalski



More information about the Python-list mailing list