def __init__(self, dtype): self.dtype = dtype def float_mapper(x): if isinstance(x, float): return "value_type(%s)" % repr(x) else: return repr(x) CCodeMapper.__init__(self, float_mapper, reverse=False)
def __init__(self, infer_type): CCodeMapperBase.__init__(self) self.infer_type = infer_type
def __init__(self): CCodeMapper.__init__(self, repr, reverse=False)