2 ms·
ast.parse(inspect.getsource(func)) doesn't work in the python shell though. You could also decompile the function's code object.
by masklinn 7y ago
ast.parse(inspect.getsource(func))
doesn't work in the python shell though.
You could also decompile the function's code object.