Server IP : 51.89.169.208 / Your IP : 216.73.216.178 Web Server : Apache System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : yellowleaf ( 1019) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/proc/self/root/usr/share/doc/python2-docs/html/_sources/library/ |
Upload File : |
:mod:`importlib` --- Convenience wrappers for :func:`__import__` ================================================================ .. module:: importlib :synopsis: Convenience wrappers for __import__ .. moduleauthor:: Brett Cannon <brett@python.org> .. sectionauthor:: Brett Cannon <brett@python.org> .. versionadded:: 2.7 This module is a minor subset of what is available in the more full-featured package of the same name from Python 3.1 that provides a complete implementation of :keyword:`import`. What is here has been provided to help ease in transitioning from 2.7 to 3.1. .. function:: import_module(name, package=None) Import a module. The *name* argument specifies what module to import in absolute or relative terms (e.g. either ``pkg.mod`` or ``..mod``). If the name is specified in relative terms, then the *package* argument must be specified to the package which is to act as the anchor for resolving the package name (e.g. ``import_module('..mod', 'pkg.subpkg')`` will import ``pkg.mod``). The specified module will be inserted into :data:`sys.modules` and returned.