A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20171122/a82a01ad/attachment.html below:

<div dir="auto"><div>Inasmuch as I get to opine, I'm +1 on SyntaxError. There is no behavior for that spelling that I would find intuitive or easy to explain to students. And as far as I can tell, the ONLY time anything has ever been spelled that way is in comments saying "look at this weird edge case behavior in Python."<br><div class="gmail_extra"><br><div class="gmail_quote">On Nov 22, 2017 10:57 AM, "Jelle Zijlstra" <<a href="mailto:jelle.zijlstra@gmail.com">jelle.zijlstra@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><div class="quoted-text">2017-11-22 9:58 GMT-08:00 Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Wow, 44 messages in 4 hours. That must be some kind of record.<br><br></div>If/when there's an action item, can someone summarize for me?<span class="m_-8139282173232182727gmail-HOEnZb"><font color="#888888"><br><div><div><div><br></div></div></div></font></span></div></blockquote></div><div>The main disagreement seems to be about what this code should do:</div><div class="quoted-text"><div><br></div><div><span style="font-size:12.8px">  Â  g = [(yield i) for i in range(3)]</span><br style="font-size:12.8px"></div><div><span style="font-size:12.8px"><br></span></div></div><div><span style="font-size:12.8px">Currently, this makes `g` into a generator, not a list. Everybody seems to agree this is nonintuitive and should be changed.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">One proposal is to make it so `g` gets assigned a list, and the `yield` happens in the enclosing scope (so the enclosing function would have to be a generator). This was the way things worked in Python 2, I believe.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Another proposal is to make this code a syntax error, because it's confusing either way. (For what it's worth, that would be my preference.)</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">There is related discussion about the semantics of list comprehensions versus calling list() on a generator expression, and of async semantics, but I don't think there's any clear point of action there.</span></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="quoted-text"><div dir="ltr"><span class="m_-8139282173232182727gmail-HOEnZb"><font color="#888888"><div><div><div><div class="gmail_extra">-- <br><div class="m_-8139282173232182727gmail-m_5842438628892057671gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div></div></div></font></span></div>
<br></div><div class="quoted-text">______________________________<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></div>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/jelle.zijlstra%40gmail.com" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/options/python-dev/jelle.<wbr>zijlstra%40gmail.com</a><br>
<br></blockquote></div><br></div></div>
<br>______________________________<wbr>_________________<br>
Python-Dev mailing list<br>
<a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-dev" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/mertz%40gnosis.cx" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/options/python-dev/<wbr>mertz%40gnosis.cx</a><br>
<br></blockquote></div><br></div></div></div>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4