<div dir="ltr">Sorry, I tried this too. If you think the response to the current version of the PEP is strong, the negative reaction to that version was way stronger, and I decided not to pursue it.<br></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 5, 2018 at 5:00 PM Alexander Belopolsky <<a href="mailto:alexander.belopolsky@gmail.com">alexander.belopolsky@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jul 5, 2018 at 7:47 PM Yury Selivanov <<a href="mailto:yselivanov.ml@gmail.com" target="_blank">yselivanov.ml@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think I tried a variation of your proposal here<br>
<a href="https://mail.python.org/pipermail/python-dev/2018-April/152939.html" rel="noreferrer" target="_blank">https://mail.python.org/pipermail/python-dev/2018-April/152939.html</a><br>
and nobody really liked it.<br><br></blockquote><div>Right. I now recall your proposal.  I think I did not support it at the time because I was against having expressions with side-effects regardless of syntax.  Now, as I mentioned, in the current form the PEP makes a strong case for allowing a limited form of variable assignment in expressions.  I also think that the dreadfulness of mistyping = where == is expected is exaggerated.  In all motivating cases, := is used to introduce new bindings rather than rebinding existing names.  Automated code checkers can easily warn users when they rebind variables in if statements and suggest that they silence the warnings with redundant (..) if they really want what they wrote.</div><div><br></div></div></div>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org" target="_blank">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/guido%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/guido%40python.org</a><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido">python.org/~guido</a>)</div>