Say I have a function:
def foo():
"""foo docstring"""
print(foo.__doc__)
How can I write this, without using the function name foo
within the print function?
Please note I've read through this similar question, which allows access to the name of a function as a string, but as far as I can see does not give access to the function itself.