But if you are trying to pass arguments to an action in a controller like this:
def test(arg1, arg2): #some code here This will not work, as actions must not take any arguments in the definition. If this is really what you're going for, then you could do something like this: def test(): arg1 = request.args[0] or None arg2 = request.args[1] or None def _test(arg1, arg2): #some code here _test(arg1, arg2)