|
1 |
| -:mod:`importlib` -- An implementation of :keyword:`import` |
2 |
| -========================================================== |
| 1 | +:mod:`importlib` -- The implementation of :keyword:`import` |
| 2 | +=========================================================== |
3 | 3 |
|
4 | 4 | .. module:: importlib
|
5 |
| - :synopsis: An implementation of the import machinery. |
| 5 | + :synopsis: The implementation of the import machinery. |
6 | 6 |
|
7 | 7 | .. moduleauthor:: Brett Cannon <brett@python.org>
|
8 | 8 | .. sectionauthor:: Brett Cannon <brett@python.org>
|
|
13 | 13 | Introduction
|
14 | 14 | ------------
|
15 | 15 |
|
16 |
| -The purpose of the :mod:`importlib` package is two-fold. One is to provide an |
| 16 | +The purpose of the :mod:`importlib` package is two-fold. One is to provide the |
17 | 17 | implementation of the :keyword:`import` statement (and thus, by extension, the
|
18 | 18 | :func:`__import__` function) in Python source code. This provides an
|
19 | 19 | implementation of :keyword:`import` which is portable to any Python
|
20 |
| -interpreter. This also provides a reference implementation which is easier to |
| 20 | +interpreter. This also provides an implementation which is easier to |
21 | 21 | comprehend than one implemented in a programming language other than Python.
|
22 | 22 |
|
23 | 23 | Two, the components to implement :keyword:`import` are exposed in this
|
24 | 24 | package, making it easier for users to create their own custom objects (known
|
25 | 25 | generically as an :term:`importer`) to participate in the import process.
|
26 |
| -Details on custom importers can be found in :pep:`302`. |
27 | 26 |
|
28 | 27 | .. seealso::
|
29 | 28 |
|
@@ -53,6 +52,9 @@ Details on custom importers can be found in :pep:`302`.
|
53 | 52 | :pep:`366`
|
54 | 53 | Main module explicit relative imports
|
55 | 54 |
|
| 55 | + :pep:`451` |
| 56 | + A ModuleSpec Type for the Import System |
| 57 | + |
56 | 58 | :pep:`3120`
|
57 | 59 | Using UTF-8 as the Default Source Encoding
|
58 | 60 |
|
|
0 commit comments