Re: [Python-Dev] PEP 0492 __aenter__ & __aexit__

2016-02-08 Thread Brett Cannon
On Mon, 8 Feb 2016 at 09:34 Yury Selivanov wrote: > Brett, > > Do you think we should update PEP 492 with links to the docs? I'm > thinking of adding a new section to the top. > Probably. Links around the Internet, search engines, etc. will point to the PEP for a while, and so knowing that the

Re: [Python-Dev] PEP 0492 __aenter__ & __aexit__

2016-02-08 Thread Yury Selivanov
Brett, Do you think we should update PEP 492 with links to the docs? I'm thinking of adding a new section to the top. Yury On 2016-02-06 5:05 PM, Brett Cannon wrote: On Sat, 6 Feb 2016 at 13:50 Daniel Miller > wrote: Hi Python-Dev Group, I am t

Re: [Python-Dev] PEP 0492 __aenter__ & __aexit__

2016-02-07 Thread Brett Cannon
On Sun, 7 Feb 2016 at 08:17 Daniel Miller wrote: > Awesome, I missed that. Thank you Brett. > Welcome! > > Am I understanding correctly that if I'd like to avoid `async with await > EXPR` whatever is returned from EXPR must implement `__await__` as a > non-coroutine method? Which then I'd just

Re: [Python-Dev] PEP 0492 __aenter__ & __aexit__

2016-02-07 Thread Daniel Miller
Awesome, I missed that. Thank you Brett. Am I understanding correctly that if I'd like to avoid `async with await EXPR` whatever is returned from EXPR must implement `__await__` as a non-coroutine method? Which then I'd just be able to use `async with ...`? 2016-02-06 16:05 GMT-06:00 Brett Cann

Re: [Python-Dev] PEP 0492 __aenter__ & __aexit__

2016-02-06 Thread Brett Cannon
On Sat, 6 Feb 2016 at 13:50 Daniel Miller wrote: > Hi Python-Dev Group, > > I am trying to implement __aenter__ and __aexit__ for the RethinkDB > Python driver. Looking at the PEP I don't see any > definitions as to what the expected parameters that __exit__ are supposed >

[Python-Dev] PEP 0492 __aenter__ & __aexit__

2016-02-06 Thread Daniel Miller
Hi Python-Dev Group, I am trying to implement __aenter__ and __aexit__ for the RethinkDB Python driver. Looking at the PEP I don't see any definitions as to what the expected parameters that __exit__ are supposed to take and couldn't find any other similar implementations.