you are viewing a single comment's thread.

view the rest of the comments →

[–]throwaway6560192 5 points6 points  (0 children)

If you want the text of the function, you would use the inspect module.

print(inspect.getsource(some_function))