Skip to content

Commit 07fbd78

Browse files
committed
Issue #20488: Update docs to say importlib is *the* implementaiton of
import and not *an* implementation.
1 parent 5b4fab1 commit 07fbd78

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Doc/library/importlib.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
:mod:`importlib` -- An implementation of :keyword:`import`
2-
==========================================================
1+
:mod:`importlib` -- The implementation of :keyword:`import`
2+
===========================================================
33

44
.. module:: importlib
5-
:synopsis: An implementation of the import machinery.
5+
:synopsis: The implementation of the import machinery.
66

77
.. moduleauthor:: Brett Cannon <brett@python.org>
88
.. sectionauthor:: Brett Cannon <brett@python.org>
@@ -13,17 +13,16 @@
1313
Introduction
1414
------------
1515

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
1717
implementation of the :keyword:`import` statement (and thus, by extension, the
1818
:func:`__import__` function) in Python source code. This provides an
1919
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
2121
comprehend than one implemented in a programming language other than Python.
2222

2323
Two, the components to implement :keyword:`import` are exposed in this
2424
package, making it easier for users to create their own custom objects (known
2525
generically as an :term:`importer`) to participate in the import process.
26-
Details on custom importers can be found in :pep:`302`.
2726

2827
.. seealso::
2928

@@ -53,6 +52,9 @@ Details on custom importers can be found in :pep:`302`.
5352
:pep:`366`
5453
Main module explicit relative imports
5554

55+
:pep:`451`
56+
A ModuleSpec Type for the Import System
57+
5658
:pep:`3120`
5759
Using UTF-8 as the Default Source Encoding
5860

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ Tests
379379
Documentation
380380
-------------
381381

382+
- Issue #20488: Importlib is no longer *an* implementation of import, it's *the*
383+
implementation.
384+
382385
- Issue #20265: Updated some parts of the Using Windows document.
383386

384387
- Issue #20266: Updated some parts of the Windows FAQ.

0 commit comments

Comments
 (0)