Tim Peters wrote:
total = 0 progressive_sums = [total := total + value for value in data]
I'm skeptical that it's a good idea to encourage this kind of thing in the first place. -- Greg _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/