<div dir="ltr">This seems reasonable, though mostly also non-urgent. Have you thought about how it interacts with PEP 492 yet?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 1:22 PM, Nathaniel Smith <span dir="ltr"><<a href="mailto:njs@pobox.com" target="_blank">njs@pobox.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Well, after a few days no-one has responded to my post on another<br>
thread about this [1], but the more I thought about it the more this<br>
seemed like a good idea, so I wrote up a little more-formal proposal<br>
(attached) for letting context managers react to 'yield's that occur<br>
within their 'with' block.<br>
<br>
This should in many ways be treated as a straw man proposal -- there's<br>
tons I don't know about how async code is written in Python these days<br>
-- but it seems like a good idea to me and I'd like to hear what<br>
everyone else thinks :-).<br>
<br>
-n<br>
<br>
[1] <a href="https://mail.python.org/pipermail/python-ideas/2015-April/033176.html" target="_blank">https://mail.python.org/pipermail/python-ideas/2015-April/033176.html</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Nathaniel J. Smith -- <a href="http://vorpus.org" target="_blank">http://vorpus.org</a><br>
</font></span><br>_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org">Python-ideas@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/python-ideas" target="_blank">https://mail.python.org/mailman/listinfo/python-ideas</a><br>
Code of Conduct: <a href="http://python.org/psf/codeofconduct/" target="_blank">http://python.org/psf/codeofconduct/</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div>