From ef2af8c3311a0d376e5eb37efb55a24834e584fa Mon Sep 17 00:00:00 2001 From: whitequark Date: Tue, 28 Jun 2016 04:42:41 +0000 Subject: [PATCH] compiler.embedding: use the builtin print as RPC. Fixes #206. --- artiq/compiler/embedding.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/artiq/compiler/embedding.py b/artiq/compiler/embedding.py index a0fa6d655..a3b47e3c2 100644 --- a/artiq/compiler/embedding.py +++ b/artiq/compiler/embedding.py @@ -19,9 +19,6 @@ from .transforms import ASTTypedRewriter, Inferencer, IntMonomorphizer from .transforms.asttyped_rewriter import LocalExtractor -def coredevice_print(x): print(x) - - class SpecializedFunction: def __init__(self, instance_type, host_function): self.instance_type = instance_type @@ -424,7 +421,7 @@ class StitchingASTTypedRewriter(ASTTypedRewriter): else: # Try to find this value in the host environment and quote it. if node.id == "print": - return self.quote(coredevice_print, node.loc) + return self.quote(print, node.loc) elif node.id in self.host_environment: return self.quote(self.host_environment[node.id], node.loc) else: