mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
Reflow 'modulespec' paragraphs.
This commit is contained in:
parent
e9b74d45d3
commit
f85b2a8dc7
1 changed files with 9 additions and 10 deletions
|
@ -282,20 +282,19 @@ in :ref:`binary-transforms` and :ref:`text-transforms`.
|
||||||
PEP 451: A ModuleSpec Type for the Import System
|
PEP 451: A ModuleSpec Type for the Import System
|
||||||
------------------------------------------------
|
------------------------------------------------
|
||||||
|
|
||||||
:pep:`451` provides an encapsulation of the information about a module
|
:pep:`451` provides an encapsulation of the information about a module that the
|
||||||
that the import machinery will use to load it (that is, a module specification).
|
import machinery will use to load it (that is, a module specification). This
|
||||||
This helps simplify both the import implementation and several
|
helps simplify both the import implementation and several import-related APIs.
|
||||||
import-related APIs. The change is also a stepping stone for `several
|
The change is also a stepping stone for `several future import-related
|
||||||
future import-related improvements`__.
|
improvements`__.
|
||||||
|
|
||||||
__ https://mail.python.org/pipermail/python-dev/2013-November/130111.html
|
__ https://mail.python.org/pipermail/python-dev/2013-November/130111.html
|
||||||
|
|
||||||
The public-facing changes from the PEP are entirely backward-compatible.
|
The public-facing changes from the PEP are entirely backward-compatible.
|
||||||
Furthermore, they should be transparent to everyone but importer
|
Furthermore, they should be transparent to everyone but importer authors. Key
|
||||||
authors. Key finder and loader methods have been deprecated, but they
|
finder and loader methods have been deprecated, but they will continue working.
|
||||||
will continue working. New importers should use the new methods
|
New importers should use the new methods described in the PEP. Existing
|
||||||
described in the PEP. Existing importers should be updated to implement
|
importers should be updated to implement the new methods.
|
||||||
the new methods.
|
|
||||||
|
|
||||||
|
|
||||||
Other Language Changes
|
Other Language Changes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue