Can Hy read and rewrite python code? #2339
-
Hy can be used as a generator for python code due to built-in compilation into python. Canit also be used for manipulating existing one? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
No, see #1721. |
Beta Was this translation helpful? Give feedback.
-
There's now an official py2hy. Also, in hindsight, I seem to have misread the question. The answer was always yes: you can use |
Beta Was this translation helpful? Give feedback.
There's now an official py2hy. Also, in hindsight, I seem to have misread the question. The answer was always yes: you can use
ast.parse
andast.unparse
just as you would in Python.