Sophie

Sophie

distrib > Mandriva > 9.1 > i586 > by-pkgid > 3c88344d1f3d15057277d028d0022277 > files > 892

swig-1.3.11-4mdk.i586.rpm

import typename
import types
f = typename.Foo()
b = typename.Bar()

x = typename.twoFoo(f)
if not isinstance(x,types.FloatType):
    print "Wrong return type!"
y = typename.twoBar(b)
if not isinstance(y,types.IntType):
    print "Wrong return type!"