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

Change CyFunction to compile with Py_LIMITED_API #5556

Merged
merged 6 commits into from Jul 23, 2023

Conversation

da-woods
Copy link
Contributor

Mostly that we store the PyCFunctionObject as an attribute of it rather than "inheriting" from PyCFunctionObject.

(Actually testing the compilation with Py_LIMITED_API defined needs to it be put on top of #5550, but I think this PR can stand alone generally)

Mostly that we store the PyCFunctionObject as an attribute of
it rather than "inheriting" from PyCFunctionObject.
@da-woods da-woods changed the title Changes CyFunction to compile with Py_LIMITED_API Change CyFunction to compile with Py_LIMITED_API Jul 22, 2023
@scoder
Copy link
Contributor

scoder commented Jul 23, 2023 via email

@scoder
Copy link
Contributor

scoder commented Jul 23, 2023 via email

Cython/Utility/CythonFunction.c Outdated Show resolved Hide resolved
Cython/Utility/CythonFunction.c Outdated Show resolved Hide resolved
Cython/Utility/CythonFunction.c Outdated Show resolved Hide resolved
Cython/Utility/CythonFunction.c Outdated Show resolved Hide resolved
@da-woods
Copy link
Contributor Author

There's a few bits of the destructor which I haven't got quite right... Don't merge yet!

@scoder
Copy link
Contributor

scoder commented Jul 23, 2023

Ok. Anyway, LGTM now. Even the ABI module change is fine, because it only touches modules that use the still officially experimental support for the Limited C-API.

@scoder scoder modified the milestones: 3.0, 3.0.1 Jul 23, 2023
@da-woods
Copy link
Contributor Author

Got to the bottom of my referencing counting problems with this. I'll merge it as soon as the tests pass.

@da-woods da-woods merged commit 9c32681 into cython:master Jul 23, 2023
61 of 75 checks passed
@da-woods da-woods deleted the limited-api-cyfunc-2 branch July 23, 2023 19:10
@mattip mattip mentioned this pull request Jul 30, 2023
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