Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is so beautifully cursed, reusing the module loader state as your local state. We could have the familiar Python syntax of

`from <key> import <value>`

And a custom import hook eating the error. To get value(s) for a given key, naturally we'd scan the module loader cache. Elegant.



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

Search: