On Sun, May 20, 2018 at 8:56 AM, Mike Miller <python-id...@mgmiller.net> wrote: > > On 2018-05-18 19:14, Chris Angelico wrote: >> >> Yes, largely because it's insufficient for all but a small handful of >> situations. I mentioned that in the previous email. > > > I'd argue that they are the bulk of occurrences, that's why they've been > chosen as the compromise in those languages. > > Once there is an assignment and two compares, the time to break up the > statement is approaching quickly, no? >
But you can't put a comparison after the assignment, if it's part of the syntax of the 'if' statement. That's not how grammar works. So you have two options: either the ONLY thing you can capture is the condition value (which you already know to be truthy), or it's part of a more general expression, and is independent of if/while. You said yourself that the first one isn't enough. So it HAS to be an expression feature, not a statement feature. ChrisA _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/