Python Meta Circular Interpreter (2019)
rahul.gopinath.org
rahul.gopinath.org
Not trying to knock the project. Very cool code! Just don't understand how it qualifies as a "meta circular".
And I would argue, the other stated use cases are maybe interesting to play around with, but nothing you really would want in production (I suppose).
Some of the other use cases, you can also achieve by module import hooks and rewriting the AST. (E.g. see how PyTest rewrites the assertion AST to produce nice error messages: https://github.com/pytest-dev/pytest/blob/main/src/_pytest/a...)
the nice thing about writing a bytecode rather than an AST interpreter is that you can leverage a lot of the work the python compiler does, and work with the resulting simplified code.