I mean, can I create them dynamically?
Yes:
>>> import types
>>> m = types.ModuleType("mymod")
>>> m
<module 'mymod' (built-in)>
You can create them dynamically, with the imp.new_module method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With