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

MAINT: Fix METH_NOARGS function signatures (#20368) #20412

Merged
merged 1 commit into from Nov 21, 2021

Conversation

charris
Copy link
Member

@charris charris commented Nov 19, 2021

Backport of #20368.

The METH_NOARGS calling convention is required to take a second PyObject* which will always be NULL.

This is a continuation of @joemarshall's work #19058.

I think there should be a bunch of more issues around METH_NOARGS usage that would be nice to fix up as well.
@seberg in #19058 (comment)

This fixes all of the incorrect METH_NOARGS signatures that I managed to track down.
We need this for pyodide/pyodide#1677.

The METH_NOARGS calling convention is required to take a second PyObject* which will always be NULL.

This is a continuation of numpy#19058
@charris charris added 03 - Maintenance 08 - Backport Used to tag backport PRs labels Nov 19, 2021
@charris charris added this to the 1.22.0 release milestone Nov 19, 2021
@charris charris marked this pull request as draft November 19, 2021 21:11
@charris
Copy link
Member Author

charris commented Nov 19, 2021

I'm making this a draft until the CircleCI problem is better understood.

@charris
Copy link
Member Author

charris commented Nov 20, 2021

close/reopen

@charris charris closed this Nov 20, 2021
@charris charris reopened this Nov 20, 2021
@charris charris marked this pull request as ready for review November 21, 2021 22:33
@charris charris merged commit 40f18c4 into numpy:main Nov 21, 2021
@charris
Copy link
Member Author

charris commented Nov 21, 2021

This change seems to work when merged and subsequent PRs have no problem, lets give it a shot.

@charris charris deleted the backport-20368 branch November 21, 2021 22:35
@charris charris restored the backport-20368 branch November 21, 2021 23:06
@charris charris removed the 08 - Backport Used to tag backport PRs label Nov 21, 2021
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.

None yet

2 participants