From be930bb0e3e6bd22e925a827fb2592c5ad7270dc Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Thu, 23 Feb 2006 09:47:21 +0000 Subject: [PATCH] fix duplicate method definitions when using -fastproxy git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8879 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Source/Modules/python.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index 35f800621..f82042be3 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -2806,8 +2806,10 @@ public: fproxy = 0; } else { if (!have_addtofunc(n)) { - Printv(f_shadow, tab4, "def ", symname, "(*args", (allow_kwargs ? ", **kwargs" : ""), "):", NIL); - Printv(f_shadow, " return ", funcCallHelper(Swig_name_member(class_name,symname), allow_kwargs), "\n", NIL); + if (!fastproxy) { + Printv(f_shadow, tab4, "def ", symname, "(*args", (allow_kwargs ? ", **kwargs" : ""), "):", NIL); + Printv(f_shadow, " return ", funcCallHelper(Swig_name_member(class_name,symname), allow_kwargs), "\n", NIL); + } } else { Printv(f_shadow, tab4, "def ", symname, "(*args", (allow_kwargs ? ", **kwargs" : ""), "):", NIL); Printv(f_shadow, "\n", NIL);