3 ms·
Solid point -- the py import system uses global sys.modules, so npm-style nested deps couldn't happen on a vanilla python. That said, it's not impossible to ha
by awinter-py 11y ago
Solid point -- the py import system uses global sys.modules, so npm-style nested deps couldn't happen on a vanilla python.
That said, it's not impossible to hack the import command to use a different package tree per module. The main difficulty would be supporting the different ways of storing modules (eggs, filesystem, .so support).