[Python-Dev] Importance of "async" keyword
Greg Ewing
greg.ewing at canterbury.ac.nz
Thu Jul 2 00:02:52 CEST 2015
Sven R. Kunze wrote:
> I like the 'await' syntax to mark suspension points. But the 'async'
> coloring makes no sense to me. It is an implementation details of
> asyncio (IMHO).
Functions containing an "await" are going to be coloured
in any case -- that's unavoidable, given that await is
built on the iterator protocol. The only question is
whether to have an explicit marker for it.
--
Greg
More information about the Python-Dev
mailing list