adding new functionality to a function non-intrusively!

peter Peter.Vandersteegen at gmail.com
Wed Feb 16 17:05:05 EST 2005


indeed it does,  so basically everything works except my original
solution:

def myfunction(a,b):
    return a+b

def _myfunction(a,b):
       return myfunction(a,b)
myfunction = _myfunction

oh well, it was enough to puzzle my tiny brain....




More information about the Python-list mailing list