For various functions in Python, if I run print(f) it will spit something out. For instance,
print(print)
which spits out
<built-in function print>
Now when I define
def f(x):
return x
print(f)
This spits out
<function f at 0x7f3800fe8dd0>
Is there a way to control what it spits out? I'd like to put my own custom string in but I'm not sure how to do that. I know how to do that for classes, but I had trouble finding a way to do that for functions.