Our great sponsors
-
python-imphook
Simple and clear import hooks for Python - import anything as if it were a Python module
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Thanks. Random example of what I myself interested to use it for - https://github.com/pfalcon/ubitey/ , to import LLVM bitcode modules (as potential means to allow architecture- and language- independent Python extension modules). You of course immediately recognize that to be a remake of well-known (in narrow circles?) David Beazley's "bitey" tool - https://github.com/dabeaz/bitey (which now bitrotted too much, so I took an excuse to just remake it using my imphook thingy, to serve as non-entire-trivial usecase for it).
importlib._bootstrap "implicitly" changes the behavior of import. Learn some day how import machinery in (C)Python is implemented. So, saying the above is as good as saying that import module is too implicit, you should use module = __import__("module"). And for C extensions, you should use something completely different, because - oh horror - loading them with the same import module is awfully implicit.
Related posts
- Arrow functions "polyfill" for Python
- imphook 0.5.1 - Simple and clear import hooks for Python (helps you import anything as if it were a Python module)
- imphook 0.5.1 - Simple and clear import hooks for Python (helps you import anything as if it were a Python module)
- imphook: Simple and clear import hooks for Python - import anything as if it were a Python module
- Pycopy 350 A Minimalist And Memoryefficient