-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Current code has a problem with sending string arguments.
I have added this method to examples/calc.py
def hello(self, name):
print name
return 'hello %s' % nameand then I try to call it from client:
assert calculator.hello('ali') == 'hello ali'But it raises this exception:
redisrpc.RemoteException: NameError("name 'ali' is not defined",)
The problem is in FunctionCall.as_python_code. It strips the quotes (' or ") of strings. If we send string value of "10 - 2", it will get it int value 8.
Metadata
Metadata
Assignees
Labels
No labels