The decorator can do introspection on the function object. This project uses the idea to execute (some) Python code on the GPU:
so can normal (i.e. not using decorators) code after the the function, e.g.:
def myFunction(x):
blah
doSomethingWith(myFunction)
Here, doSomethingWith() can introspect on myFunction()