1. 17
  1.  

  2. 6

    Macropy is excellent when one wants to use syntactic macros. One problem I had was that, for my scripts, I cannot directly use macropy and other syntax modifiers since they rely on the import hooks, which means that you can not use them directly on the script file. You have to import them separately, which makes their use cumbersome.

    This was my project to work around this issue. It works, but is very hacky, and requires adding a new codec to the Python installation.

    1. 2

      Wow, it’s kinda mad in a beautiful way, thanks for sharing! I’ll give it a deeper read later.

    2. 1

      This is amazing! Basically proc-macros in Python, for you rustaceans out there.