Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fix compilation on Python 3.8 #119
Conversation
Two things to do this: * Use a version check (instead of a macro definedness check) to determine whether to emulate _PyObject_FastCall * Use the graminit.h versions of Py_func_type_input and friends directly instead of defining them in a compile-ast3.h, since Py_func_type_input showed back up in a public header with a different value in 3.8 and caused warnings.
|
LG. I don't recall why I didn't just get those symbols from graminit.h in the first place -- probably because the upstream source doesn't. |
mypy currently fails to install on Python 3.8 (due to it relying on a version of typed-ast that doesn't yet include this fix: python/typed_ast#119). There's no reason to be running it on 3.8, so just run it on 3.7 instead.


Two things to do this:
whether to emulate _PyObject_FastCall
directly instead of defining them in a compile-ast3.h, since
Py_func_type_input showed back up in a public header with a
different value in 3.8 and caused warnings.