[C++-SIG] Beginer questions
ephi at adital.com
Sun Nov 14 21:04:59 CET 1999
I am a beginner in Python and kind of confused on the subject of combining C++ and Python.
I understand that there are 2 ways of interaction.
We in our project are only interesting in the case that you call C++ classes and functions from Python, We would like to use C++ classes that are already written in C++ from Python script.
We successfully built a shared library with C api, import it and call the function from Python, but when it comes to calling C++, we are completely in the dark and would appreciate any help in that area. Once we understand the subject we would be glad to help other to come up to speed as well.
Here is our questions:
1. At this point we are trying to wrap the C++ class as C, but our problem is, how do we pass a pointer from Python to C++ so we can keep the pointer to the class.
2. Is there any easer way to call the functions of C++ classes from python instead of wrapping them with C functions.
3. We recently came across CObject Python object. is it the solution to pass pointer to C function from Python. Is there any example available on this?
4. About Swig. Is swig the best solution for calling C++ from Python.
Thanks a lot in advanced for any information which can shade some light on this subject.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cplusplus-sig