Back to index

python3.2  3.2.2
Public Member Functions
importlib._bootstrap.FrozenImporter 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 frozen modules.

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

Definition at line 247 of file _bootstrap.py.


Member Function Documentation

def importlib._bootstrap.FrozenImporter.find_module (   cls,
  fullname,
  path = None 
)
Find a frozen module.

Definition at line 257 of file _bootstrap.py.

00257 
00258     def find_module(cls, fullname, path=None):
00259         """Find a frozen module."""
00260         return cls if imp.is_frozen(fullname) else None

Here is the caller graph for this function:

def importlib._bootstrap.FrozenImporter.get_code (   cls,
  fullname 
)
Return the code object for the frozen module.

Definition at line 277 of file _bootstrap.py.

00277 
00278     def get_code(cls, fullname):
00279         """Return the code object for the frozen module."""
00280         return imp.get_frozen_object(fullname)

Here is the caller graph for this function:

def importlib._bootstrap.FrozenImporter.get_source (   cls,
  fullname 
)
Return None as frozen modules do not have source code.

Definition at line 283 of file _bootstrap.py.

00283 
00284     def get_source(cls, fullname):
00285         """Return None as frozen modules do not have source code."""
00286         return None

Here is the caller graph for this function:

def importlib._bootstrap.FrozenImporter.is_package (   cls,
  fullname 
)
Return if the frozen module is a package.

Definition at line 289 of file _bootstrap.py.

00289 
00290     def is_package(cls, fullname):
00291         """Return if the frozen module is a package."""
00292         return imp.is_frozen_package(fullname)
00293 

Here is the caller graph for this function:

def importlib._bootstrap.FrozenImporter.load_module (   cls,
  fullname 
)
Load a frozen module.

Definition at line 265 of file _bootstrap.py.

00265 
00266     def load_module(cls, fullname):
00267         """Load a frozen module."""
00268         is_reload = fullname in sys.modules
00269         try:
00270             return imp.init_frozen(fullname)
00271         except:
00272             if not is_reload and fullname in sys.modules:
00273                 del sys.modules[fullname]
00274             raise

Here is the caller graph for this function:


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