input()

input([prompt]) If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised. Example: >>> s = input('--> ') --> Monty Python's Flying Circus >>> s "Monty Python's Flying Circus" If the readline module was loaded, then input() will use it to provide elaborate line editing and h

IndentationError

exception IndentationError Base class for syntax errors related to incorrect indentation. This is a subclass of SyntaxError.

importlib.__import__()

importlib.__import__(name, globals=None, locals=None, fromlist=(), level=0) An implementation of the built-in __import__() function. Note Programmatic importing of modules should use import_module() instead of this function.

IndexError

exception IndexError Raised when a sequence subscript is out of range. (Slice indices are silently truncated to fall in the allowed range; if an index is not an integer, TypeError is raised.)

ImportWarning

exception ImportWarning Base class for warnings about probable mistakes in module imports.

importlib.util.spec_from_loader()

importlib.util.spec_from_loader(name, loader, *, origin=None, is_package=None) A factory function for creating a ModuleSpec instance based on a loader. The parameters have the same meaning as they do for ModuleSpec. The function uses available loader APIs, such as InspectLoader.is_package(), to fill in any missing information on the spec. New in version 3.4.

importlib.util.set_package()

@importlib.util.set_package A decorator for importlib.abc.Loader.load_module() to set the __package__ attribute on the returned module. If __package__ is set and has a value other than None it will not be changed. Deprecated since version 3.4: The import machinery takes care of this automatically.

importlib.util.source_from_cache()

importlib.util.source_from_cache(path) Given the path to a PEP 3147 file name, return the associated source code file path. For example, if path is /foo/bar/__pycache__/baz.cpython-32.pyc the returned path would be /foo/bar/baz.py. path need not exist, however if it does not conform to PEP 3147 or PEP 488 format, a ValueError is raised. If sys.implementation.cache_tag is not defined, NotImplementedError is raised. New in version 3.4.

importlib.util.spec_from_file_location()

importlib.util.spec_from_file_location(name, location, *, loader=None, submodule_search_locations=None) A factory function for creating a ModuleSpec instance based on the path to a file. Missing information will be filled in on the spec by making use of loader APIs and by the implication that the module will be file-based. New in version 3.4.

importlib.util.set_loader()

@importlib.util.set_loader A decorator for importlib.abc.Loader.load_module() to set the __loader__ attribute on the returned module. If the attribute is already set the decorator does nothing. It is assumed that the first positional argument to the wrapped method (i.e. self) is what __loader__ should be set to. Changed in version 3.4: Set __loader__ if set to None, as if the attribute does not exist. Deprecated since version 3.4: The import machinery takes care of this automatically.