2 ms·
That is in fact also possible, and you could use it to make this magicimport system get called automatically whenever you try to import a non-existent library.
by ekimekim 6y ago
That is in fact also possible, and you could use it to make this magicimport system get called automatically whenever you try to import a non-existent library.
https://docs.python.org/3/reference/import.html#import-hooks https://docs.python.org/3/reference/import.html#import-hooks
- rbanffy 6y agoThis is one of those cases when something that can be done just shouldn't.