Re:PEP 572: Python assignment expressions has been accepted
by aib on Friday July 06, 2018 @08:20AM
(#17470775)
> > Python uses `TRUE-CASE if COND else FALSE-CASE`.
> And this is wrong -- this is not how Python if statements work.
Huh? Didn't you yourself say I was not talking about if statements:
> What you are talking about is a different kind of expression, similar to a ternary operator. It is not the same as if...else
In any case, I'm talking about the case that goes `TRUE-CASE if COND else FALSE-CASE`, as can be deduced from my typing `TRUE-CASE if COND else FALSE-CASE`.
> Python uses `TRUE-CASE if COND else FALSE-CASE`.
And this is wrong -- this is not how Python if statements work.