def testOutputTypes(self): # Should be ok to assign to superclass f = py_ivar() f <<= one() self.assertEquals(f.get(), 1) x = Int() x <<= one() self.assertEquals(x.get(), 1)
def wrapper(*args, **kwargs): return (py_ivar(r) for r in f(*args, **kwargs))