4 ms·
There are code which takes the Python AST and attempts to produce the correct Python code. It has a few issues if i recall correctly but it should mostly^tm wor
by Foxboron 5y ago
There are code which takes the Python AST and attempts to produce the correct Python code. It has a few issues if i recall correctly but it should mostly^tm work.
https://github.com/berkerpeksag/astor https://github.com/berkerpeksag/astor
- gilch 5y agoThat capability is in the standard library now: https://docs.python.org/3/library/ast.html?highlight=unparse#ast.unparse https://docs.python.org/3/library/ast.html?highlight=unparse...