git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7148 626c5289-ae23-0410-ae9c-e8d60b6d4f22
15 lines
213 B
Python
15 lines
213 B
Python
from director_thread import Foo
|
|
|
|
class Derived(Foo) :
|
|
def __init__(self):
|
|
Foo.__init__(self)
|
|
|
|
def do_foo(self):
|
|
self.val -= 1
|
|
|
|
|
|
d = Derived()
|
|
d.run()
|
|
|
|
if d.val >= 0:
|
|
raise RuntimeError
|