Custom Types
Asked by
sean ross
I am looking for a better way to write a a custom method wrapper to help me with non standard type conversions.
What I would like to do is write:
>>> SomeClass.
Where I link with a c++ file that defines the function:
PyObject* some_function_X( SomeClass* something );
Is this possible? I have tried this and I see the following code is generated:
retval = particle_
py_retval = Py_BuildValue((char *) "N", retval);
return py_retval;
Is there anything similar that I can try?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- sean ross
- Solved:
- Last query:
- Last reply:
To post a message you must log in.