mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Explain a little about the explanation.
This commit is contained in:
parent
9f4cb1c89d
commit
bc6c2b5c6b
1 changed files with 5 additions and 0 deletions
|
@ -388,6 +388,11 @@ an :term:`importer`.
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
Below is an example meta path importer that uses a dict for back-end storage
|
||||||
|
for source code. While not an optimal solution -- manipulations of
|
||||||
|
:attr:`__path__` on packages does not influence import -- it does illustrate
|
||||||
|
what little is required to implement an importer.
|
||||||
|
|
||||||
.. testcode::
|
.. testcode::
|
||||||
|
|
||||||
"""An importer where source is stored in a dict."""
|
"""An importer where source is stored in a dict."""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue