Skip to content

Instantly share code, notes, and snippets.

@tebeka
Created April 3, 2022 16:26
Show Gist options
  • Save tebeka/74f6c71faaf27ed8f09e119f30269a3a to your computer and use it in GitHub Desktop.
Save tebeka/74f6c71faaf27ed8f09e119f30269a3a to your computer and use it in GitHub Desktop.
$ echo '-2**2' | python -m ast
Module(
body=[
Expr(
value=UnaryOp(
op=USub(),
operand=BinOp(
left=Constant(value=2),
op=Pow(),
right=Constant(value=2))))],
type_ignores=[])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment