Back to index

python3.2  3.2.2
Public Member Functions
importlib._bootstrap.BuiltinImporter Class Reference

List of all members.

Public Member Functions

def find_module
def load_module
def get_code
def get_source
def is_package

Detailed Description

Meta path import for built-in modules.

All methods are either class or static methods to avoid the need to
instantiate the class.

Definition at line 194 of file _bootstrap.py.


Member Function Documentation

def importlib._bootstrap.BuiltinImporter.find_module (   cls,
  fullname,
  path = None 
)
Find the built-in module.

If 'path' is ever specified then the search is considered a failure.

Definition at line 204 of file _bootstrap.py.

00204 
00205     def find_module(cls, fullname, path=None):
00206         """Find the built-in module.
00207 
00208         If 'path' is ever specified then the search is considered a failure.
00209 
00210         """
00211         if path is not None:
00212             return None
00213         return cls if imp.is_builtin(fullname) else None

Here is the caller graph for this function:

def importlib._bootstrap.BuiltinImporter.get_code (   cls,
  fullname 
)
Return None as built-in modules do not have code objects.

Definition at line 230 of file _bootstrap.py.

00230 
00231     def get_code(cls, fullname):
00232         """Return None as built-in modules do not have code objects."""
00233         return None

Here is the caller graph for this function:

def importlib._bootstrap.BuiltinImporter.get_source (   cls,
  fullname 
)
Return None as built-in modules do not have source code.

Definition at line 236 of file _bootstrap.py.

00236 
00237     def get_source(cls, fullname):
00238         """Return None as built-in modules do not have source code."""
00239         return None

Here is the caller graph for this function:

def importlib._bootstrap.BuiltinImporter.is_package (   cls,
  fullname 
)
Return None as built-in module are never packages.

Definition at line 242 of file _bootstrap.py.

00242 
00243     def is_package(cls, fullname):
00244         """Return None as built-in module are never packages."""
00245         return False
00246 

Here is the caller graph for this function:

def importlib._bootstrap.BuiltinImporter.load_module (   cls,
  fullname 
)
Load a built-in module.

Definition at line 218 of file _bootstrap.py.

00218 
00219     def load_module(cls, fullname):
00220         """Load a built-in module."""
00221         is_reload = fullname in sys.modules
00222         try:
00223             return imp.init_builtin(fullname)
00224         except:
00225             if not is_reload and fullname in sys.modules:
00226                 del sys.modules[fullname]
00227             raise

Here is the caller graph for this function:


The documentation for this class was generated from the following file: