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
PyCF_ALLOW_TOP_LEVEL_AWAIT + list comprehension set .CO_COROUTINE falg. #85390
Labels
3.8
only security fixes
3.9
only security fixes
3.10
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
release-blocker
Comments
As far as I can tell sometime in 3.8.x (likely 3.8.3) the following snippet changed result: import ast
import inspect
cell = '[x for x in l]'
code = compile(cell, "<>", "exec", flags=getattr(ast,'PyCF_ALLOW_TOP_LEVEL_AWAIT', 0x0))
Use to be False in 3.8.2 I believe and is False after. This is problematic when you try to detect top-level await code. |
Carreau
mannequin
added
3.8
only security fixes
3.9
only security fixes
3.10
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
labels
Jul 6, 2020
(crossref ipython/ipython#12422) |
https://bugs.python.org/issue39562 seem to have triggered that. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
3.8
only security fixes
3.9
only security fixes
3.10
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
release-blocker
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: