tree-sitter-python icon indicating copy to clipboard operation
tree-sitter-python copied to clipboard

Error on exec on variable

Open Sjord opened this issue 4 years ago • 0 comments

func = "print"
exec func in {}
(module [0, 0] - [1, 15]
  (expression_statement [0, 0] - [0, 14]
    (assignment [0, 0] - [0, 14]
      left: (identifier [0, 0] - [0, 4])
      right: (string [0, 7] - [0, 14])))
  (expression_statement [1, 0] - [1, 15]
    (comparison_operator [1, 0] - [1, 15]
      (identifier [1, 0] - [1, 4])
      (ERROR [1, 5] - [1, 9]
        (identifier [1, 5] - [1, 9]))
      (dictionary [1, 13] - [1, 15]))))
test.py	0 ms	(ERROR [1, 5] - [1, 9])

Sjord avatar Sep 21 '21 09:09 Sjord