[Python-Dev] async/await in Python; v2

Greg Ewing greg.ewing at canterbury.ac.nz
Fri Apr 24 10:03:28 CEST 2015


Barry Warsaw wrote:
> Sure, tools can be updated but it is it *necessary*
> to choose a syntax that breaks tools?
> 
>     def async useful():
> 
> seems okay to me.

That will break any tool that assumes the word following
'def' is the name of the function being defined.

Putting it at the end would seem least likely to
cause breakage:

    def useful() async:

-- 
Greg


More information about the Python-Dev mailing list