diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index e47b392885a..a91b099c7cd 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -1483,7 +1483,7 @@ available. They are listed here in alphabetical order. names. If you simply want to import a module (potentially within a package) by name, - you can get it from :data:`sys.modules`:: + you can use :func:`__import__` and then look it up in :data:`sys.modules`:: >>> import sys >>> name = 'foo.bar.baz'