python-ast-explorer
python-ast-explorer copied to clipboard
The code behind python-ast-explorer.com
Is there a way to go back from the json to AST or to the code ?
Type annotations for example just give an error
`print(astor.dump_tree(ast.parse('5*c * (-1 + d)', mode='eval')))` is Expression( body=BinOp(left=BinOp(left=Num(n=5), op=Mult, right=Name(id='c')), op=Mult, right=BinOp(left=UnaryOp(op=USub, operand=Num(n=1)), op=Add, right=Name(id='d')))) but I don't see the `UnaryOp` at `https://python-ast-explorer.com`.
for a simple example, the input ```python x.sort(reverse=True) ``` comes out as follows in the tool:  However, in the latest version of Python (3.8.1 as of this writing), the...
- split layers for caching - install npm explicitly since latest alpines do not install it with node - do not `copy . .` (at least at the top of...