[Python-Dev] PEP 0492 __aenter__ & __aexit__
Brett Cannon
brett at python.org
Sat Feb 6 17:05:33 EST 2016
More information about the Python-Dev mailing list
Sat Feb 6 17:05:33 EST 2016
- Previous message (by thread): [Python-Dev] PEP 0492 __aenter__ & __aexit__
- Next message (by thread): [Python-Dev] PEP 0492 __aenter__ & __aexit__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, 6 Feb 2016 at 13:50 Daniel Miller <dalanmiller at rethinkdb.com> wrote: > Hi Python-Dev Group, > > I am trying to implement __aenter__ and __aexit__ for the RethinkDB > <https://rethinkdb.com> 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. Is there a > piece of documentation I should be looking at that I'm missing? > > > https://www.python.org/dev/peps/pep-0492/#asynchronous-context-managers-and-async-with > The arguments to __aexit__ are the same as __exit__ in a normal context manager. See https://docs.python.org/3.5/reference/datamodel.html#object.__aexit__ for the official docs for __aexit__. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20160206/ca980ca4/attachment.html>
- Previous message (by thread): [Python-Dev] PEP 0492 __aenter__ & __aexit__
- Next message (by thread): [Python-Dev] PEP 0492 __aenter__ & __aexit__
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list