Let's talk about importing modules dynamically in Python.
This is a big topic that could involve a few different things, and all of them are a little bit weird, so we're going to take a look at a few examples.
Let's say we have a string that represents a module name, and we don't have this module name when we write our Python code, but we do have this name at runtime:
...
This is a premium screencast available only to active Python Morsels subscribers.
You can find free screencasts on the screencasts page.
Need to fill-in gaps in your Python skills? I send weekly emails designed to do just that.