python-ast-explorer icon indicating copy to clipboard operation
python-ast-explorer copied to clipboard

The code behind python-ast-explorer.com

Results 6 python-ast-explorer issues
Sort by recently updated
recently updated
newest added

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: ![image](https://user-images.githubusercontent.com/2100134/73412633-36063600-42d7-11ea-8569-86a5faf3b73c.png) 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...