logoalt Hacker News

rirze • today at 5:12 PM • 1 reply • view on HN

Hmm I see https://peps.python.org/pep-0829/ is now merged in. I understand why it's necessary, but I was doing some cool things with codecs installing "macros" with `.pth` imports.


Replies

alextremblay • today at 5:14 PM

modern macro systems hook into python's import machinery to handle / expand macros, instead of hooking codes or executing code inside .pth files

Take a look at https://github.com/Technologicat/mcpyrate for example

➕ show 1 reply