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

gh-94185: Fix PyObject_NEW and PyObject_NEW_VAR #94186

Closed
wants to merge 5 commits into from

Conversation

trcrsired
Copy link

@trcrsired trcrsired commented Jun 23, 2022

The commit 7ad6f74 tried to add brackets to tons of macros, but they break PyObject_New and PyObject_NEW_VAR since the macro would expand to ((Type)*) which breaks compilation for those CPython headers.

Fix the issue 94185.

… pair

The problem is that ((type) *) is not working. Randomly adding brackets to macros are not going to work
@cpython-cla-bot
Copy link

cpython-cla-bot bot commented Jun 23, 2022

All commit authors signed the Contributor License Agreement.
CLA signed

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@corona10 corona10 requested a review from vstinner June 24, 2022 15:53
@vstinner
Copy link
Member

This change lacks unit tests: I wrote PR #94234 which adds tests.

Thanks for the bug report and the PR!

@kumaraditya303
Copy link
Contributor

Fixed by #94234

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.

4 participants