[Python-Dev] ABCs - Re: PEP 492: async/await in Python; version 4
Guido van Rossum
guido at python.org
Tue May 5 21:10:01 CEST 2015
On Mon, May 4, 2015 at 10:35 AM, Jim J. Jewett <jimjjewett at gmail.com> wrote:
> Which reminds me ... *should* the "await" keyword work with any future,
> or is it really intentionally restricted to use with a single library
> module and 3rd party replacements?
>
You can make any Future type work with await by adding an __await__ method.
--
--Guido van Rossum (python.org/~guido)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150505/6ba6f8f9/attachment.html>
More information about the Python-Dev
mailing list