Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support PEP 492 syntax #1453

Closed
gvanrossum opened this issue Apr 29, 2016 · 1 comment · Fixed by #1946
Closed

Support PEP 492 syntax #1453

gvanrossum opened this issue Apr 29, 2016 · 1 comment · Fixed by #1946

Comments

@gvanrossum
Copy link
Member

gvanrossum commented Apr 29, 2016

In PEP 492 some new syntax is introduced: async def, await, async for, async with. These are live in Python 3.5.2. Once the fast parser lands (#1353) we should support these. See also python/typing#119; the tl;dr is that we should support

async def foo() -> str:
    return ''
@gvanrossum
Copy link
Member Author

gvanrossum commented Jul 27, 2016

The first half of the implementation has been committed now: PR #1808 added support for async def, await, async for and async with. The second half of the implementation will hopefully follow soon: see PR #1946 .

ddfisher pushed a commit that referenced this issue Aug 3, 2016
This PR adds support for decorating either generators or `async def` functions with `@types.coroutine` or `@asyncio.coroutine`. This will fix #1453.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant