def read_std_arguments(self, context):
        funcdef = context.funcdef
        notation = funcdef.extra_options.get('extdirect_params_notation',
                                             self.default_params_notation)
        args = context.params
        if notation == 'positional':
            kw = dict(
                (argdef.name, fromjson(argdef.datatype, arg))
                for argdef, arg in zip(funcdef.arguments, args)
            )
        elif notation == 'named':
            if len(args) == 0:
                args = [{}]
            elif len(args) > 1:
                raise ClientSideError(
                    "Named arguments: takes a single object argument")
            args = args[0]
            kw = dict(
                (argdef.name, fromjson(argdef.datatype, args[argdef.name]))
                for argdef in funcdef.arguments if args in argdef.name
            )
        else:
            raise ValueError("Invalid notation: %s" % notation)
        return kw
dataset/ETHPy150Open openstack/wsme/wsmeext/extdirect/protocol.py/ExtDirectProtocol.read_std_arguments/swapped operands of `in`