/tags/rel-1-3-25/SWIG/Examples/test-suite/python/typename_runme.py
Python | 12 lines | 10 code | 2 blank | 0 comment | 4 complexity | dcb251fb749b7cc2d2d57ec904d6572c MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1import typename 2import types 3f = typename.Foo() 4b = typename.Bar() 5 6x = typename.twoFoo(f) 7if not isinstance(x,types.FloatType): 8 print "Wrong return type!" 9y = typename.twoBar(b) 10if not isinstance(y,types.IntType): 11 print "Wrong return type!" 12