[Python-ideas] if expensive_computation() as x:
random832 at fastmail.us
random832 at fastmail.us
Fri Feb 14 21:31:19 CET 2014
Isn't this whole concept just a way of sneaking in
assignments-as-expressions? I'd almost say it would be preferable to
_actually_ allow assignments as expressions [maybe with an alternate
operator like := if we're too worried about people making a mistake in a
condition], rather than invent a new kind of scope and come up with
rules as to where this new syntax can be used.
More information about the Python-ideas
mailing list