I'm not sure if my suggestion for 572 has been considered:``name! expression``I'm curious what the pros and cons of this form would be (?).My arguments for were in a previous message but there do not seem to be any responses to it.CammilOn Fri, 6 Apr 2018, 16:14 Guido van Rossum, <guido@python.org> wrote:______________________________On Fri, Apr 6, 2018 at 7:47 AM, Peter O'Connor <peter.ed.oconnor@gmail.com> wrote:--Hi all, thank you for the feedback. I laughed, I cried, and I learned.You'll be a language designer yet. :-)However, it looks like I'd be fighting a raging current if I were to try and push this proposal. It's also encouraging that most of the work would be done anyway if ("Statement Local Name Bindings") thread passes. So some more humble proposals would be:1) An initializer to itertools.accumulatefunctools.reduce already has an initializer, I can't see any controversy to adding an initializer to itertools.accumulateSee if that's accepted in the bug tracker.2) Assignment returns a value (basically what's already in the "Statement local name bindings" discussion)`a=f()` returns a value of aThis would allow updating variables in a generator (I don't see the need for ":=" or "f() as a") but that's another discussionPlease join the PEP 572 discussion. The strongest contender currently is `a := f()` and for good reasons.--Guido van Rossum (python.org/~guido)_________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/