Fixed %pythonnondynamic, as discussed on the swig-devel mailing list, message id 26787772

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12593 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Stefan Zager 2011-04-03 05:13:06 +00:00
commit 76e7d01c4e

View file

@ -757,9 +757,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",