[Python] Embedding Python return 값 여러 개 받기
·
언어 | Framework/Python
PyObject *pFunc, *pArg, *pResult; PyObject *pValue1, *pValue2, *pValue3; PyObject *ob1 = NULL, *ob2 = NULL, *ob3 = NULL; // Function name pFunc = PyObject_GetAttrString(m_pModule, "func"); if (pFunc && PyCallable_Check(pFunc)) { // Set values pValue1 = PyLong_FromLong('long_value'); pValue2 = PyLong_FromLong('long_value'); pValue3 = PyLong_FromLong('long_value'); // Set arg pArg = PyTuple_New(3)..