diff --git a/SWIG/Source/Modules/python.cxx b/SWIG/Source/Modules/python.cxx index 9e498aad3..58c7cb193 100644 --- a/SWIG/Source/Modules/python.cxx +++ b/SWIG/Source/Modules/python.cxx @@ -1629,7 +1629,7 @@ public: if (Len(pn)) { String *tmp = 0; String *name = pn; - if (!Getattr(p,"self")) { + if (!Getattr(p,"hidden")) { name = tmp = Swig_name_make(p,0,pn,0, 0); } Printf(kwargs,"(char *) \"%s\",", name); @@ -1661,7 +1661,7 @@ public: if (Getattr(p,"tmap:in:implicitconv")) { const char *convflag = "0"; - if (!Getattr(p,"self")) { + if (!Getattr(p,"hidden")) { SwigType *ptype = Getattr(p,"type"); convflag = get_implicitconv_flag(classLookup(ptype)); } @@ -1766,7 +1766,7 @@ public: if (!Getattr(p,"tmap:in:parse") && (tm = Getattr(p,"tmap:freearg"))) { if (Getattr(p,"tmap:freearg:implicitconv")) { const char *convflag = "0"; - if (!Getattr(p,"self")) { + if (!Getattr(p,"hidden")) { SwigType *ptype = Getattr(p,"type"); convflag = get_implicitconv_flag(classLookup(ptype)); } @@ -2856,6 +2856,7 @@ public: if (parms) set_nextSibling(self, parms); Setattr(n, "parms", self); Setattr(n, "wrap:self", "1"); + Setattr(n, "hidden", "1"); Delete(self); }