def is_pyobj(x): if x is None or isinstance(x, W_Root): return False elif is_PyObject(lltype.typeOf(x)): return True else: raise TypeError(repr(type(x)))
def is_pyobj(x): if x is None or isinstance(x, W_Root): return False elif is_PyObject(lltype.typeOf(x)): return True else: raise TypeError(repr(type(x)))