Python: Use PyObject_SetAttr instead of PyObject_GenericSetAttr for back-ref
This commit is contained in:
parent
cc2dc6b192
commit
92df196408
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ namespace swig {
|
||||||
static PyObject* attr = SWIG_Python_str_FromChar("__owner");
|
static PyObject* attr = SWIG_Python_str_FromChar("__owner");
|
||||||
SwigPyObject* swigThis = SWIG_Python_GetSwigThis(child);
|
SwigPyObject* swigThis = SWIG_Python_GetSwigThis(child);
|
||||||
if (swigThis && (swigThis->own & SWIG_POINTER_OWN) != SWIG_POINTER_OWN) {
|
if (swigThis && (swigThis->own & SWIG_POINTER_OWN) != SWIG_POINTER_OWN) {
|
||||||
PyObject_GenericSetAttr(child, attr, owner);
|
PyObject_SetAttr(child, attr, owner);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue