Skip to content

Initial C-api implementation #5604

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

arihant2math
Copy link
Collaborator

@arihant2math arihant2math commented Mar 12, 2025

This PR doesn't aim to implement any particular feature set/subset of the C-API, rather it tries to get the scaffolding in place, so that most functions could be implemented.

It's currently built as a dll/so, but it probably needs to be renamed later on (packaging this kind of this is not my area of expertise).

This PR implements large parts of the concrete objects layer and a stub for error handling, although it needs to be expanded on.

@arihant2math arihant2math changed the title initial capi initial C-api implementation Mar 22, 2025
@arihant2math arihant2math marked this pull request as ready for review March 22, 2025 20:58
@arihant2math arihant2math force-pushed the capi branch 3 times, most recently from 9a41976 to 8b9ab66 Compare March 30, 2025 20:56
@arihant2math
Copy link
Collaborator Author

Ready for review.

@arihant2math arihant2math changed the title initial C-api implementation Initial C-api implementation Apr 8, 2025
@arihant2math arihant2math force-pushed the capi branch 2 times, most recently from 143bb86 to 79ac3ca Compare April 11, 2025 01:15
@arihant2math
Copy link
Collaborator Author

arihant2math commented Apr 11, 2025

Should I just exclude capi from the spellchecker.

@youknowone
Copy link
Member

youknowone commented Apr 11, 2025

What kind of terms bother you?

I disabled a few files for reasons:

  • Not worth to spend too much effort. They are OS/platform/whatever very domain specific terms
  • Too painful to handle right now. Those files will be eventually turned to enabled again

When sharing a few terms with CPython implementation makes problem, adding them to cpython.txt will be better

@arihant2math
Copy link
Collaborator Author

Stuff like ccomplex. I'm actually just going to add it to cspell, since it's probably better that way.

@arihant2math
Copy link
Collaborator Author

Should be fixed ... ready for merge.

Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
@arihant2math arihant2math added the C-enhancement New feature or request label Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants