Skip to content

bpo-43244: Remove Yield macro from pycore_ast.h #25243

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

Merged
merged 3 commits into from
Apr 7, 2021
Merged

bpo-43244: Remove Yield macro from pycore_ast.h #25243

merged 3 commits into from
Apr 7, 2021

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 7, 2021

  • pycore_ast.h no longer defines the Yield macro.
  • Fix a compiler warning on Windows: "warning C4005: 'Yield': macro
    redefinition".
  • Python-ast.c now defines directly functions with their real
    _Py_xxx() name, rather than xxx().
  • Remove "#undef Yield" in C files including pycore_ast.h.

https://bugs.python.org/issue43244

* pycore_ast.h no longer defines the Yield macro.
* Fix a compiler warning on Windows: "warning C4005: 'Yield': macro
  redefinition".
* Python-ast.c now defines directly functions with their real
  _Py_xxx() name, rather than xxx().
* Remove "#undef Yield" in C files including pycore_ast.h.
@vstinner vstinner merged commit d36d6a9 into python:master Apr 7, 2021
@vstinner vstinner deleted the ast_yield branch April 7, 2021 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants