From f7c8625f6189bad7dec32cee4034824556638728 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 27 Aug 2015 05:56:46 -0500 Subject: [PATCH] compiler.embedding: support calling methods via RPC as well. --- artiq/compiler/embedding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/compiler/embedding.py b/artiq/compiler/embedding.py index 424468bc1..cfeff698f 100644 --- a/artiq/compiler/embedding.py +++ b/artiq/compiler/embedding.py @@ -504,7 +504,7 @@ class Stitcher: syscall=None) def _quote(self, value, loc): - if inspect.isfunction(value): + if inspect.isfunction(value) or inspect.ismethod(value): # It's a function. We need to translate the function and insert # a reference to it. function_name = self._quote_function(value, loc)