[Python-ideas] "Assignment expression" with function call-alike syntax
Steven D'Aprano
steve at pearwood.info
Sat May 26 05:08:24 EDT 2018
On Sat, May 26, 2018 at 12:00:45PM +0300, Kirill Balunov wrote:
> > It looks like a function you could call from anywhere, but you want
> > to limit it to just "while" and "if", I expect that will just give us a
> > flood of questions on Stackoverflow and other forums, "why can't I use
> > this() outside of if and while loops?"
>
> I do not know how you decided that I propose to limit this call-alike
> variant only to `while` and `if`statements. I did not say that. I just said
> that personally I'm interested and see the advantages of using it only in
> `while` and `if` statements. Of course you are right that you can call it
> from anywhere.
My mistake, sorry.
--
Steve
More information about the Python-ideas
mailing list