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

Paul Sokolovsky pmiscml at gmail.com
Fri Apr 24 21:11:56 CEST 2015


Hello,

On Fri, 24 Apr 2015 12:04:27 -0700
Łukasz Langa <lukasz at langa.pl> wrote:

[]
> > 
> > They would likely search for something like
> > r"^\s*def\s+[a-zA-Z0-9_]+" which will hit "def async spam" but not
> > "async def”.
> 
> Realistically that can’t be what they’re doing because of multiple
> string literals, internal-scope functions, etc. But I agree with
> Steven that guessing here is pointless. More importantly, consider:
> 
> - if we optimize for some unproven backwards compatibility with
> tools, we’re sacrificing better readability of “async def foo()”

Yes, so hopefully another argument prevails: the sooner they break, the
sooner they're fixed (no irony here, I really consider it strange to
optimize language syntax based on background auxiliary utilities'
features or misfeatures).

[]


-- 
Best regards,
 Paul                          mailto:pmiscml at gmail.com


More information about the Python-Dev mailing list