4 ms·
Wow, I am blown away by how complete this implementation is. Nice work! Now please post a writeup of how the internals work :)
by egonschiele 13y ago
Wow, I am blown away by how complete this implementation is. Nice work! Now please post a writeup of how the internals work :)
- tekacs 13y agoIt's actually pretty simple and almost all in this file: https://github.com/lihaoyi/macropy/blob/master/macropy/core/macros.py https://github.com/lihaoyi/macropy/blob/master/macropy/core/... Those already familiar with the imp mechanism and AST module could probably infer it from the description. An absolutely beautiful facet of Python's nature is that with relatively little background, it's quite straightforward to know how all sorts of 'magic's and hacks work at first glance. :)