News for hackers. Stuff that matters.
Re:Macropy: Syntactic Macros for Python by kbob on Sunday May 17, 2020 @09:44PM (#23217321)
Macropy transforms Python's AST. So it doesn't allow anything that Python can't parse.

I spent some time earlier this year looking at tapping into the Python compilation process before the AST is generated, in order to allow statements that are not legal Python syntax.

It's definitely possible using the `tokenize` module, but doing it right was turning into more work than the quick hack I wanted.

There are no comments on this comment yet.