1 2 3 4 5 6 7
def foo1(context): context.write("this is foo1.") return '' def foo2(context, x): context.write("this is foo2, x is " + x) return ''