29.2.1 zipimporter Objects
- Create a new zipimporter instance. archivepath must be a path to a zipfile. ZipImportError is raised if archivepath doesn't point to a valid ZIP archive.
- Search for a module specified by fullname. fullname must be the fully qualified (dotted) module name. It returns the zipimporter instance itself if the module was found, or None if it wasn't. The optional path argument is ignored--it's there for compatibility with the importer protocol.
- Return the code object for the specified module. Raise ZipImportError if the module couldn't be found.
- Return the data associated with pathname. Raise IOError if the file wasn't found.
- Return the source code for the specified module. Raise ZipImportError if the module couldn't be found, return None if the archive does contain the module, but has no source for it.
- Return True if the module specified by fullname is a package. Raise ZipImportError if the module couldn't be found.
- Load the module specified by fullname. fullname must be the fully qualified (dotted) module name. It returns the imported module, or raises ZipImportError if it wasn't found.
See About this document... for information on suggesting changes.