We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
code
async def f(): [await a for a in range(1)]
expected: No error
Actual:
File "z.py", line 2 [await a for a in range(1)] ^ SyntaxError: 'await' outside async function
The text was updated successfully, but these errors were encountered:
are you working on this right now? Otherwise I would like to take a stab at this and see if I get anywhere.
Sorry, something went wrong.
Not yet, please go ahead. 👍 codegen/compile.rs is related. propagating async function context to compile_comprehension will be the starting point
Successfully merging a pull request may close this issue.
Feature
code
expected: No error
Actual:
Python Documentation or reference to CPython source code
The text was updated successfully, but these errors were encountered: