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/044dbe71/attachment.html below:

<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">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="gmail-HOEnZb"><font color="#888888"><br><div><div><div><br></div></div></div></font></span></div></blockquote><div>The main disagreement seems to be about what this code should do:</div><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><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 dir="ltr"><span class="gmail-HOEnZb"><font color="#888888"><div><div><div><div class="gmail_extra">-- <br><div class="gmail-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>______________________________<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/jelle.zijlstra%40gmail.com" rel="noreferrer" target="_blank">https://mail.python.org/<wbr>mailman/options/python-dev/<wbr>jelle.zijlstra%40gmail.com</a><br>
<br></blockquote></div><br></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