def visit_Return(self, stmt): if self.module_entry: v = self.as_pyobj(stmt.value) if config.debug: self.print_pyobj_type(v, "Return type: ") self.print_pyobj(v, "Return value: ") return "return (PyObject*) %s;" % v else: return FnCompiler.visit_Return(self, stmt)
def __init__(self, module_entry = True, *args, **kwargs): attr_from_kwargs(self, kwargs, 'compiler_cmd') attr_from_kwargs(self, kwargs, 'compiler_flag_prefix') attr_from_kwargs(self, kwargs, 'linker_flag_prefix') attr_from_kwargs(self, kwargs, 'src_extension') FnCompiler.__init__(self, module_entry = module_entry, *args, **kwargs)
def __init__(self, module_entry=True, *args, **kwargs): attr_from_kwargs(self, kwargs, 'compiler_cmd') attr_from_kwargs(self, kwargs, 'compiler_flag_prefix') attr_from_kwargs(self, kwargs, 'linker_flag_prefix') attr_from_kwargs(self, kwargs, 'src_extension') FnCompiler.__init__(self, module_entry=module_entry, *args, **kwargs)