Dynamically import specific names from a module vs importing full module

Malcolm Greene python at bdurham.com
Mon Aug 22 16:21:51 EDT 2016


Python 3.5: Is there a way to dynamically import specific names from a
module vs importing the full module?

By dynamic I mean via some form of importlib machinery, eg. I'm looking
for the dynamic "from <module> import <name>" equivalent of "import
<module>"'s importlib.import_module.

Thank you,
Malcolm



More information about the Python-list mailing list