From cbbca8b07fbeae9e5b85120594b1dba9b90e25de Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Tue, 29 Mar 2005 22:09:23 +0000 Subject: [PATCH] add 'super' call example git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7116 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/python/director_string_runme.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SWIG/Examples/test-suite/python/director_string_runme.py b/SWIG/Examples/test-suite/python/director_string_runme.py index e3ef78114..d30cddbb7 100644 --- a/SWIG/Examples/test-suite/python/director_string_runme.py +++ b/SWIG/Examples/test-suite/python/director_string_runme.py @@ -4,9 +4,14 @@ class B(A): def __init__(self,string): A.__init__(self,string) + def get_first(self): + return A.get_first(self) + " world!" + b = B("hello") b.get(0) -b.get_first() +if b.get_first() != "hello world!": + print b.get_first() + raise RuntimeError