Hi there, I have a piece of code like this:
void funct(PyObject* pyobj) { char str[128]; strncpy(str, "just a test string", sizeof(str)); PyObject* pydata = PyObject_CallMethod(pyobj, "method_x", "s", str); Py_DECREF(pydata); } After the function is exited, the str is not there anymore. Will this affect python operation. How does python use the str? It's copied or it just uses the pointer? Thanks in advance. -- http://mail.python.org/mailman/listinfo/python-list