I want to change the string representation of a python function to be just the function name.
Eg for some function
def blah(x): ...
As noted already, the answer is no. If you just want to get the name of a function as a string, you can use blah.__name__.
blah.__name__