<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, 8 Feb 2016 at 09:34 Yury Selivanov <<a href="mailto:yselivanov.ml@gmail.com">yselivanov.ml@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Brett,<br>
<br>
Do you think we should update PEP 492 with links to the docs?  I'm<br>
thinking of adding a new section to the top.<br></blockquote><div><br></div><div>Probably. Links around the Internet, search engines, etc. will point to the PEP for a while, and so knowing that the most up-to-date info is actually the docs and not the PEP would be good. I honestly just know all of this stuff because of a massive blog post I'm writing on async/await ATM.</div><div><br></div><div>-Brett</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Yury<br>
<br>
On 2016-02-06 5:05 PM, Brett Cannon wrote:<br>
><br>
><br>
> On Sat, 6 Feb 2016 at 13:50 Daniel Miller <<a href="mailto:dalanmiller@rethinkdb.com" target="_blank">dalanmiller@rethinkdb.com</a><br>
> <mailto:<a href="mailto:dalanmiller@rethinkdb.com" target="_blank">dalanmiller@rethinkdb.com</a>>> wrote:<br>
><br>
>     Hi Python-Dev Group,<br>
><br>
>     I am trying to implement __aenter__ and __aexit__ for the<br>
>     RethinkDB <<a href="https://rethinkdb.com" rel="noreferrer" target="_blank">https://rethinkdb.com</a>> Python driver. Looking at the<br>
>     PEP I don't see any definitions as to what the expected parameters<br>
>     that __exit__ are supposed to take and couldn't find any other<br>
>     similar implementations. Is there a piece of documentation I<br>
>     should be looking at that I'm missing?<br>
><br>
>     <a href="https://www.python.org/dev/peps/pep-0492/#asynchronous-context-managers-and-async-with" rel="noreferrer" target="_blank">https://www.python.org/dev/peps/pep-0492/#asynchronous-context-managers-and-async-with</a><br>
><br>
><br>
> The arguments to __aexit__ are the same as __exit__ in a normal<br>
> context manager. See<br>
> <a href="https://docs.python.org/3.5/reference/datamodel.html#object.__aexit__" rel="noreferrer" target="_blank">https://docs.python.org/3.5/reference/datamodel.html#object.__aexit__</a> for<br>
> the official docs for __aexit__.<br>
><br>
><br>
> _______________________________________________<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/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/yselivanov.ml%40gmail.com" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/yselivanov.ml%40gmail.com</a><br>
<br>
_______________________________________________<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/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/brett%40python.org" rel="noreferrer" target="_blank">https://mail.python.org/mailman/options/python-dev/brett%40python.org</a><br>
</blockquote></div></div>