Home | History | Annotate | Download | only in Lib

Lines Matching refs:importer

7     Importer        Base class for replacing standard import functions

25 __all__ = ["ImportManager","Importer","BuiltinImporter"]
70 # This is the Importer that we use for grabbing stuff from the
94 # if there is a parent, then its importer should manage this import
133 importer = top_module.__dict__.get('__importer__')
134 if importer:
135 return importer._finish_import(top_module, parts[1:], fromlist)
144 # If the importer does not exist, then we have to bail. A missing
145 # importer means that something else imported the module, and we have
190 # the module, or an Importer object that can import the module.
204 # importer), but at least we can validate that it's ours to reload
205 importer = module.__dict__.get('__importer__')
206 if not importer:
217 class Importer:
361 # this importer and parent could not find the module (relatively)
504 class BuiltinImporter(Importer):
526 # Internal importer used for importing from the filesystem
528 class _FilesystemImporter(Importer):
543 # This importer is never used with an empty parent. Its existence is
619 print name, module.__dict__.get('__importer__', '-- no importer')
659 # query mechanism needed: is a specific Importer installed?
662 # distutils importer hooked to list of standard Internet repositories
695 # cache dict mapping pathnames to importer objects, and a separate
696 # method for coming up with an importer given a pathname that's not yet
698 # extension to decide which importer class to use; you can register new
699 # importer classes by registering a suffix or a Boolean function, plus a
700 # class. If you register a new importer class, the cache is zapped.
706 # My/Guido's comments on factoring ImportManager and Importer:
712 # > 2) implementing policy in Importer assists in package-private policy
715 # > I'll see if I can sort out a way to do this. Maybe the Importer class will
719 # Maybe also think about what kind of policies an Importer would be