I need to detect whether a function is an empty definition or not. It can be like:
def foo(): pass
or like:
def foo(i, *arg
The way you're using works. A perhaps more "elegant" solution would be to have a list of functions, and in all your empty (or all your non-empty) functions you would add it to the list, and then check whether the function is in the list or not.