cpython/Lib/lib2to3/pgen2
Yury Selivanov 8fb307cd65 Issue #24619: New approach for tokenizing async/await.
This commit fixes how one-line async-defs and defs are tracked
by tokenizer.  It allows to correctly parse invalid code such
as:

>>> async def f():
...     def g(): pass
...     async = 10

and valid code such as:

>>> async def f():
...     async def g(): pass
...     await z

As a consequence, is is now possible to have one-line
'async def foo(): await ..' functions:

>>> async def foo(): return await bar()
2015-07-22 13:33:45 +03:00
..
__init__.py
conv.py
driver.py
grammar.py add matrix multiplication operator support to 2to3 2014-04-10 00:12:47 -04:00
literals.py
parse.py
pgen.py
token.py PEP 0492 -- Coroutines with async and await syntax. Issue #24017. 2015-05-11 22:57:16 -04:00
tokenize.py Issue #24619: New approach for tokenizing async/await. 2015-07-22 13:33:45 +03:00