On Sat, Mar 3, 2018 at 12:48 PM, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > Chris Angelico wrote: >> >> It would NOT work for anything where the bool() of >> the desired object doesn't exactly match the loop's condition. > > > while condition(x) where x = something(): > ... >
And we're back to needing a new keyword. Though this is reasonably plausible, so I could add it to the PEP (as another rejected alternative) if there's support for it. 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/