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.
notes
-
Async comprehensions
Pulling in
Python.asdl
from 3.6 slightly altered the definition ofast.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 whereast.comprehension
is instantiated have been updated to setis_async=0
. -
__annotations__
in__main__
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.