Hacker News new | past | comments | ask | show | jobs | submit login

It's actually pretty simple and almost all in this file:

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. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: