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

The "loader protocol" (PEP 302) is a related trick that can be used locally, so it only affects imports from packages that opt in. I use this in https://github.com/bdarnell/codegenloader to automagically process protobuf/thrift files and import the generated code.


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

Search: