Skip to content

string arguments #22

@gowhari

Description

@gowhari

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' % name

and 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions