<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Oct 1, 2017 at 1:52 PM, Koos Zevenhoven <span dir="ltr"><<a href="mailto:k7hoven@gmail.com" target="_blank">k7hoven@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class=""><div><div class="gmail_extra"><div class="gmail_quote">On Oct 1, 2017 19:26, "Guido van Rossum" <<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>> wrote:<br type="attribution"><blockquote class="m_8983733778423292916quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Your PEP is currently incomplete. If you don't finish it, it is not even a contender. But TBH it's not my favorite anyway, so you could also just withdraw it. </div><div class="m_8983733778423292916elided-text"><div class="gmail_extra"></div></div></blockquote></div></div></div><div dir="auto"><br></div></span><div dir="auto">I can withdraw it if you ask me to, but I don't want to withdraw it without any reason. I haven't changed my mind about the big picture. OTOH, PEP 521 is elegant and could be used to implement PEP 555, but 521 is almost certainly less performant and has some problems regarding context manager wrappers that use composition instead of inheritance.</div></div></blockquote><div><br></div><div>It is my understanding that PEP 521 (which proposes to add optional __suspend__ and __resume__ methods to the context manager protocol, to be called whenever a frame is suspended or resumed inside a `with` block) is no longer a contender because it would be way too slow. I haven't read it recently or thought about it, so I don't know what the second issue you mention is about (though it's presumably about the `yield` in a context manager implemented using a generator decorated with `@contextlib.contextmanager`).</div><div><br></div><div>So it's really between PEP 550 and PEP 555. And there are currently too many parts of PEP 555 that are left to the imagination of the reader. So, again, I ask you to put up or shut up. It's your choice. If you don't want to do the work completing the PEP you might as well withdraw (once I am satisfied with Yury's PEP I will just accept it when there's no contender). If you do complete it I will probably still choose PEP 550 -- but at the moment the choice would be between something I understand completely and something that's too poorly specified to be able to reason about it.</div><div><br></div><div>--Guido<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><span class="HOEnZb"><font color="#888888"><div dir="auto">-- Koos</div></font></span><span class=""><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_8983733778423292916quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_8983733778423292916elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Oct 1, 2017 9:13 AM, "Koos Zevenhoven" <<a href="mailto:k7hoven@gmail.com" target="_blank">k7hoven@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On Sep 29, 2017 18:21, "Guido van Rossum" <<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>> wrote:<br type="attribution"><blockquote class="m_8983733778423292916m_7934627499215721610m_7645411494173996599m_2514823706867998173m_-754394710302544346quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><br></div><div class="gmail_extra">PS. PEP 550 is still unaccepted, awaiting a new revision from Yury and Elvis.</div><div class="m_8983733778423292916m_7934627499215721610m_7645411494173996599m_2514823706867998173m_-754394710302544346quoted-text"><div class="gmail_extra"></div></div></div></blockquote></div></div></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_8983733778423292916m_7934627499215721610m_7645411494173996599m_2514823706867998173m_-754394710302544346quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_8983733778423292916m_7934627499215721610m_7645411494173996599m_2514823706867998173m_-754394710302544346quoted-text"><div class="gmail_extra"></div></div></div></blockquote></div></div></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_8983733778423292916m_7934627499215721610m_7645411494173996599m_2514823706867998173m_-754394710302544346quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_8983733778423292916m_7934627499215721610m_7645411494173996599m_2514823706867998173m_-754394710302544346quoted-text"><div class="gmail_extra"></div></div></div></blockquote></div></div></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="m_8983733778423292916m_7934627499215721610m_7645411494173996599m_2514823706867998173m_-754394710302544346quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="m_8983733778423292916m_7934627499215721610m_7645411494173996599m_2514823706867998173m_-754394710302544346quoted-text"><div class="gmail_extra"></div></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">This is getting really off-topic, but I do have updates to add to PEP 555 if there is interest in that. IMO, 555 is better and most likely faster than 550, but on the other hand, the issues with PEP 550 are most likely not going to be a problem for me personally.</div><div dir="auto"><br></div><div dir="auto">-- Koos</div></div>
</blockquote></div></div>
</div></blockquote></div><br></div></div></span></div>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">--Guido van Rossum (<a href="http://python.org/~guido" target="_blank">python.org/~guido</a>)</div>
</div></div>