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

fix to use function pointers #82

Merged

Conversation

Vipul-Cariappa
Copy link
Collaborator

@@ -2610,6 +2610,12 @@ static void* PyFunction_AsCPointer(PyObject* pyobject,
// function pointer. The former is direct, the latter involves a JIT-ed wrapper.
static PyObject* sWrapperCacheEraser = PyCFunction_New(&gWrapperCacheEraserMethodDef, nullptr);

// FIXME: avoid string comparisons and parsing
std::string true_signature = signature;
true_signature.erase(std::remove(true_signature.begin(), true_signature.end(), ' '), true_signature.end());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you give an example what's the type of things new get and we should edit out?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I realize we should probably move forward with this PR. We could probably do a better job at the converter comparison level but that's probably good enough to make progress...

Copy link

@vgvassilev vgvassilev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Vipul-Cariappa Vipul-Cariappa merged commit 6b1440a into compiler-research:master Feb 21, 2025
42 checks passed
@Vipul-Cariappa Vipul-Cariappa deleted the dev/func-pointers branch February 21, 2025 07:37
Vipul-Cariappa added a commit to Vipul-Cariappa/cppyy-compiler-research that referenced this pull request Feb 21, 2025
`test01_instance_data_read_access` fixed by compiler-research/cppyy-backend#128 (enum changes)
others fixed by compiler-research/CPyCppyy#82 & compiler-research/CppInterOp#502
Vipul-Cariappa added a commit to compiler-research/cppyy that referenced this pull request Feb 22, 2025
`test01_instance_data_read_access` fixed by compiler-research/cppyy-backend#128 (enum changes)
others fixed by compiler-research/CPyCppyy#82 & compiler-research/CppInterOp#502
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

Successfully merging this pull request may close these issues.

2 participants