From 76e7d01c4ecf2ca0d616f0343ea91d6386ee8ab7 Mon Sep 17 00:00:00 2001 From: Stefan Zager Date: Sun, 3 Apr 2011 05:13:06 +0000 Subject: [PATCH] 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 --- Source/Modules/python.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 0cae46bf8..9ac50b2fb 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -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",