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

Don't use C type PyNoArgsFunction #198

Open
serhiy-storchaka opened this issue Jan 18, 2020 · 2 comments
Open

Don't use C type PyNoArgsFunction #198

serhiy-storchaka opened this issue Jan 18, 2020 · 2 comments
Assignees

Comments

@serhiy-storchaka
Copy link

It is not used in Python core, should not be used in user code, and will be removed in Python 3.9. METH_NOARGS functions should have type PyCFunction instead of PyNoArgsFunction and take NULL as the second argument.

@gracinet gracinet self-assigned this Jan 18, 2020
@gracinet
Copy link
Collaborator

@gracinet
Copy link
Collaborator

As far as I can see, it's not really used by rust-cpython, it's simply declared, like all other symbols, in python-*-sys.

Even if it's wrong from our users to use it in current Python versions, the simplest course of action seems hence to not declare it for Python >= 3.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants