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? From the survey of other modern languages that was just posted, it seems we'd be in good company if adopted something like that. -- 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/