Created originally on Bitbucket by alcarithemad (Colin)
Was already merged in Bitbucket before import, marked as merged by the import user
This is my first attempt at contributing to pypy. It does what it says on the tin.
I'm happy to address any feedback.
Python.asdlfrom 3.6 slightly altered the definition of
ast.comprehension, adding a new attribute to support async comprehensions, as added in PEP 530. I judged this to be a small enough side effect that it was simple to modify the usage sites. The two sites where
ast.comprehensionis instantiated have been updated to set
PEP 526 says:
Note that if annotations are not found statically, then the
__annotations__dictionary is not created at all.
CPython unconditionally sets
__annotations__as an empty dict on the
__main__module. I have replicated that behavior but am not sure if it is desirable, or how to test it.