def startLog(func):

    def loggedFunc(*args, **kwargs):
        print('starting {0} with {1}'.format(func.__name__, args[0]))
return func(*args, **kwargs)
return loggedFunc

@startLog
def theFunc():
    print('running theFunc')
theFunc()
How do I get the same functionality as C's __FUNCTION__ in Python?