Answer the question
In order to leave comments, you need to log in
I'm learning python to C integration and can't figure out what my mistake is. If it's not difficult, can you help?
Here is the type error code: PyNAme needs an identifier, although everything works here https://habr.com/ru/post/466181/ . If I put PyObject it says that PyObject cannot be converted to PyObject* . Maybe I didn't install something? Or is it due to the fact that I write in c++? Sorry for my incompetence!
}
void main()
{
PyObject*
python_init() {
do {
Py_Initialize();
pName = PyUnicode_FromString("func");
Py_Finalize();
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question