Steven D'Aprano wrote:
"Not sure"? Given that you listed seven ways, how much more evidence do you need to conclude that it is simply wrong to say that Python has a single way to assign a value to a name?
Yes, but six of those are very specialised, and there's rarely any doubt about when it's appropriate to use them. The proposed :=, on the other hand, would overlap a lot with the functionality of =. It's not a case of "Python already has seven ways of assigning, so one more can't hurt." -- Greg _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com