<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000000">Thank you both very much,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000000"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000000">I see that this longevity problem is really crucial. A pity for me ;)</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000000">best wishes,</div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#000000">Stephan</div><div class="gmail_extra"><br><div class="gmail_quote">On 3 October 2014 00:15, Greg Ewing <span dir="ltr"><<a href="mailto:greg.ewing@canterbury.ac.nz" target="_blank">greg.ewing@canterbury.ac.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Chris Angelico wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
it<br>
would mean that the generator would have to retain a reference to its<br>
return value, which is contrary to what most people will expect of<br>
function return values. It might make for unnecessary object<br>
longevity.<br>
</blockquote>
<br></span>
This was debated during the yield-from discussions and<br>
decided against. If I remember rightly, unexpected longevity<br>
of return values was one of the main objections.<span><font color="#888888"><br>
<br>
-- <br>
Greg</font></span><div><div><br>
______________________________<u></u>_________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/<u></u>mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/<u></u>codeofconduct/</a><br>
</div></div></blockquote></div><br></div></div>