On Sat, May 19, 2018 at 12:11 PM, Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > Chris Angelico wrote: >> >> The 'as' syntax has been hammered out in great detail and is no longer >> recommended due to its negative interactions with existing constructs. > > > Allowing it in arbitrary expressions has been ruled out on > the grounds that the difference between "with x as y:" and > "with (x as y):" would be too subtle. > > But that argument doesn't apply if "as" becomes part of the > syntax of "if" and "while". Do we think that's a bad idea > as well?
Yes, largely because it's insufficient for all but a small handful of situations. I mentioned that in the previous email. 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/