title: convert cstring to python string object
body: <p>I have a function wrapper for c and python. This wrapper will receive 2 string arguments and convert these two into a tuple and pass it to python script. fileName and className are the c string arguments. pFunc is the python function name.</p>
  
  <pre><code>PyObject *pArgs, *pValue,*pFunc;
  pValue = PyString_FromString(fileName);
  PyTuple_SetItem(pArgs, 0, pValue);
  pValue = PyString_FromString(className);
  PyTuple_SetItem(pArgs, 0, pValue);
  pValue = PyObject_CallObject(pFunc, pArgs);
  </code></pre>
  
  <p>the error was cannot convert QString to const char*</p>
  
  <p>i have tried the PyUnicode_FromString API, but still doesnt work, and gave the same error</p>
  
  <p>the inputs are strings and i just want to make the PyObject_CallObject work, regardless of what type of pValue is (preferably strings too).... how do i do this...</p>