Merged %pythonnondynamic fix

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/szager-python-builtin@12594 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Stefan Zager 2011-04-03 05:15:48 +00:00
commit c95cc72454

View file

@ -858,9 +858,9 @@ public:
#endif
tab4, tab8, "return\n", tab4, "method = class_type.__swig_setmethods__.get(name,None)\n", tab4, "if method: return method(self,value)\n",
#ifdef USE_THISOWN
tab4, "if (not static) or hasattr(self,name) or (name == \"thisown\"):\n",
tab4, "if (not static) or (name == \"thisown\"):\n",
#else
tab4, "if (not static) or hasattr(self,name):\n",
tab4, "if (not static):\n",
#endif
tab4, tab4, "self.__dict__[name] = value\n",
tab4, "else:\n",