Why is Python assignment a statement rather than an expression? If it was an expression which returns the value of the right hand side in the assignment, it would have allowed for much less verbose code in some cases. Are there any issues I can't see?
For example:
# lst is some sequence
# X is come class
x = X()
lst.append(x)
could have been rewritten as:
lst.append(x = X())
Well, to be precise, the above won't work because x
would be treated as a keyword argument. But another pair of parens (or another symbol for keyword arguments) would have resolved that.