When debugging, I like to print out all the inputs and outputs of a function (I know I need a better IDE, but humour me, this could be used for error reporting). So, I\'d id
I second what nosklo said.
Another thing to notice is that your function is a bit dangerous:
b = myfunc(1,3)
In this case, "b" is None, because the decorated function doesn't return anything.
None