Hacker News new | past | comments | ask | show | jobs | submit login

We got this very "problem" in Hy. AST allows for several characters as Names, where python does not.

A great example is with gensym, here we will make an ast.Name node with a prefix ":", if you run astor over this, you produce AST containing that very character. What happens if you try run this Python code? Syntax error. There is also a few other cases i can't think off right now.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: