<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Sep 28, 2015 at 3:40 PM, Terry Reedy <span dir="ltr"><<a href="mailto:tjreedy@udel.edu" target="_blank">tjreedy@udel.edu</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 9/28/2015 3:38 PM, Emile van Sebille wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 9/28/2015 10:24 AM, Andrew Barnert via Python-ideas wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Sep 28, 2015, at 09:47, Sven R. Kunze<br>
<<a href="mailto:srkunze@mail.de" target="_blank">srkunze@mail.de</a>> wrote:<br>
</blockquote>
<snip><br>
<br>
<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">
I wouldn't make a mountain out of a molehill. Other existing<br>
operators have the same issue.<br>
</blockquote>
<br>
Which other keywords or symbols may be either a binary operator or<br>
part of a ternary operator depending on context?<br>
</blockquote>
<br>
These come to mind:<br>
<br>
a = b = c<br>
a < b < c<br>
</blockquote>
<br></span>
These are chained comparisons, which get separated, not ternary operators. a < b = c < e > f in g is also syntactically valid, and I don't think anything is gained by calling it a pentanary operator.<span class="HOEnZb"><font color="#888888"></font></span><br></blockquote></div><br></div><div class="gmail_extra">But a < b < c is an excellent example of something that cannot be mindlessly refactored into (a < b) < c.<br clear="all"></div><div class="gmail_extra"><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div>