Skip to content

Commit f7c8625

Browse files
author
whitequark
committedAug 27, 2015
compiler.embedding: support calling methods via RPC as well.
1 parent c62b16d commit f7c8625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎artiq/compiler/embedding.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ def _quote_function(self, function, loc):
504504
syscall=None)
505505

506506
def _quote(self, value, loc):
507-
if inspect.isfunction(value):
507+
if inspect.isfunction(value) or inspect.ismethod(value):
508508
# It's a function. We need to translate the function and insert
509509
# a reference to it.
510510
function_name = self._quote_function(value, loc)

0 commit comments

Comments
 (0)
Please sign in to comment.