pyscripter replied to Jacek Laskowski's topic in Python4Delphi
Yes but note that PyObject_SetAttrString increments the reference count of pObj. So if you want to pass the responsibility of destroying the object to python, you need to decrement it:
fPyEngine.Py_DecRef(pObj);