4 ms·
Python imports are much more principled than sourcing bash though. They are executed in a new namespace, and subsequent imports reference that namespace directl
by lordmauve 3y ago
Python imports are much more principled than sourcing bash though. They are executed in a new namespace, and subsequent imports reference that namespace directly instead of re-evaluating the code.
C extensions don't significantly change matters because the module is still constructed by procedural C code.