4 ms·
It makes more sense to pass a ModuleType subclass to _import_ for instantiation (or put it on sys). That subclass can determine which special methods to do. H
by onesphere 3y ago
It makes more sense to pass a ModuleType subclass to _import_ for instantiation (or put it on sys). That subclass can determine which special methods to do. Here's a simple (unrelated) import mechanism I've been working on for customization-sake: https://thetaplane.com/runtime/import https://thetaplane.com/runtime/import