Source Code:
(back to article)
def my_function(): pass print(str(my_function)) # Output: "<function my_function at 0x7f7c52f5a0d0>" print(repr(my_function)) # Output: "<function my_function at 0x7f7c52f5a0d0>"
Result:
Report an issue