Is there an existing library that inlines the function code instead of their calls to create procedual code?
example:
before:
def add(a, b):
result = a + b
return result
tmp = add(2, 3)`
after:
a = 2
b = 3
result = a + b
tmp = result
Does something like this already exist? I have not found anything like this before.
Best Regards!
I tried using the libraries ast and astor
New contributor
René is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.