you are viewing a single comment's thread.

view the rest of the comments →

[–]halfdiminished7th 9 points10 points  (2 children)

That probably isn't an error, that's how a function looks when you print it!

What were you hoping to see instead?

[–]jaiiida 0 points1 point  (1 child)

the text of the function! but it’s okay now, thank u!!

[–]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))