diff --git a/pep-0451.txt b/pep-0451.txt index 5d9979e39..70b1c5e3f 100644 --- a/pep-0451.txt +++ b/pep-0451.txt @@ -164,7 +164,7 @@ loaders and sys.meta_path. The importlib module, introduced with Python 3.1, now exposes a pure Python implementation of the APIs described by PEP 302, as well as of the full import system. It is now much easier to understand and extend the import system. While a benefit -to the Python community, this greater accessibilty also presents a +to the Python community, this greater accessabilty also presents a challenge. As more developers come to understand and customize the import system, @@ -188,7 +188,7 @@ functionality of their load_module() through other methods. Thus, though the import-related information about a module is likely available without loading the module, it is not otherwise exposed. -Furthermore, the requirements assocated with load_module() are +Furthermore, the requirements associated with load_module() are common to all loaders and mostly are implemented in exactly the same way. This means every loader has to duplicate the same boilerplate code. importlib.util provides some tools that help with this, but @@ -545,7 +545,8 @@ zipimport), that information may be stored in spec.loader_state. "has_location" may be implied from the existence of a load_data() method on the loader. -Incidently, not all locatable modules will be cachable, but most will. +Incidentally, not all locatable modules will be cache-able, but most +will. **submodule_search_locations** @@ -587,7 +588,7 @@ Build a spec from file-oriented information and loader APIs. not passed in. * "loader" can be deduced from suffix if the location is a filename. * "submodule_search_locations" can be deduced from loader.is_package() - and from os.path.dirname(location) if locatin is a filename. + and from os.path.dirname(location) if location is a filename. **from_loader(name, loader, \*, origin=None, is_package=None)** @@ -596,7 +597,7 @@ Build a spec with missing information filled in by using loader APIs. * "has_location" can be deduced from loader.get_data. * "origin" can be deduced from loader.get_filename(). * "submodule_search_locations" can be deduced from loader.is_package() - and from os.path.dirname(location) if locatin is a filename. + and from os.path.dirname(location) if location is a filename. **spec_from_module(module, loader=None)**