Embedding Python support
Asked by
Gregor Burger
Hi,
I would like to use pybindgen for a project where I want to extend c++ defined classes in
python and use them in c++.
generating the bindings works very well, but i can't figure out how to extract the extended
c++ class from a PyObject. I know I can do this by using PyArg_ParseTuple but i need the
Py[ClassName] structure for that. I need to do this because I'm instantiating the objects
from c++.
Is there a way to extract C++ object from an PyObject that pybindgen provides or is it possible
to split the generated sources into header and implementation that I can include and use.
thanks in advance and pybindgen is cool! ;-)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Gustavo Carneiro
- Solved:
- Last query:
- Last reply:
To post a message you must log in.