-
Notifications
You must be signed in to change notification settings - Fork 5
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
fix to use function pointers #82
Conversation
70808b6
to
a9f0fd5
Compare
@@ -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()); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
`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
`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
depends on compiler-research/cppyy-backend#128