Can I undecorate a function?

skip at pobox.com skip at pobox.com
Mon Jan 29 12:27:31 EST 2007


    Matt> In some instances I want to access just the function f, though,
    Matt> and catch the values before they've been decorated.

def f(x):
    return x * x

@as_string
def fs(x):
    return f(x)

Call the one you want.

Skip



More information about the Python-list mailing list