<div dir="ltr">Christoph's interpretation is correct. I don't rule that out. I also separately proposed := as something that more people could get behind, though perhaps it's all moot, and perhaps the PEP would gain clarity if it went back to proposing "=". (Mostly kidding.)<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 20, 2018 at 11:47 AM, Ethan Furman <span dir="ltr"><<a href="mailto:ethan@stoneleaf.us" target="_blank">ethan@stoneleaf.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 04/20/2018 11:31 AM, Christoph Groth wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ethan Furman wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 04/20/2018 11:15 AM, Christoph Groth wrote:<br>
</blockquote></blockquote>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
OK, but then how about introducing assignment expressions with the "="<br>
operator but *requiring* extra parens (similar to how modern C<br>
compilers warn about assignment expressions without parens), e.g.<br>
</blockquote>
<br>
Using a single "=" for assignment expressions isn't going to happen.<br>
Period.<br>
</blockquote>
<br>
Huh, I didn't want to irritate anyone!<br>
</blockquote>
<br></span>
No worries.  It's just not going to happen.  ;)<span class=""><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Guido wrote [1] on python-ideas:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I also think it's fair to at least reconsider adding inline<br>
assignment, with the "traditional" semantics (possibly with mandatory<br>
parentheses).  This would be easier to learn and understand for people<br>
who are familiar with it from other languages (C++, Java, JavaScript).<br>
</blockquote>
<br>
I interpreted this in the way that he at least doesn't rule out "= with<br>
parens" completely.  Perhaps he meant ":= with parens", but that would<br>
seem redundant.<br>
</blockquote>
<br></span>
Ah.  I believe he was referring to not having a statement-local binding, but a normal binding instead (so either local or global depending on where the expression occurred).<br>
<br>
--<br>
~Ethan~<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<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/mailma<wbr>n/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/mailma<wbr>n/options/python-dev/guido%<wbr>40python.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div>