Visitar URL original
Fix compilation on Python 3.8 by msullivan · Pull Request #119 · python/typed_ast · GitHub
The Wayback Machine - https://web.archive.org/web/20201125043544/https://github.com/python/typed_ast/pull/119
Skip to content
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

Fix compilation on Python 3.8 #119

Merged
merged 1 commit into from Jun 4, 2019
Merged

Fix compilation on Python 3.8 #119

merged 1 commit into from Jun 4, 2019

Conversation

@msullivan
Copy link
Collaborator

@msullivan msullivan commented Jun 4, 2019

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.
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.
Copy link
Member

@gvanrossum gvanrossum left a comment

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.

@msullivan msullivan merged commit bd75088 into master Jun 4, 2019
4 checks passed
4 checks passed
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@msullivan msullivan deleted the fix-3.8 branch Jun 4, 2019
OddBloke added a commit to OddBloke/ubuntu-advantage-client that referenced this pull request Jun 5, 2019
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.