Hacker News new | past | comments | ask | show | jobs | submit login

    ast.parse(inspect.getsource(func))
doesn't work in the python shell though.

You could also decompile the function's code object.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: