summaryrefslogtreecommitdiffstats
path: root/Doc/library/importlib.rst
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-04-01 23:36:48 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-04-01 23:36:48 (GMT)
commitbc6c2b5c6b8f606e4c41c1548c2910da56a7b09c (patch)
tree504b05470b61f29b71777ce03985ad3201a8395e /Doc/library/importlib.rst
parent9f4cb1c89d7076df7152407f2280916e785f3346 (diff)
downloadcpython-bc6c2b5c6b8f606e4c41c1548c2910da56a7b09c.zip
cpython-bc6c2b5c6b8f606e4c41c1548c2910da56a7b09c.tar.gz
cpython-bc6c2b5c6b8f606e4c41c1548c2910da56a7b09c.tar.bz2
Explain a little about the explanation.
Diffstat (limited to 'Doc/library/importlib.rst')
-rw-r--r--Doc/library/importlib.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/importlib.rst b/Doc/library/importlib.rst
index c768ebe..8c10377 100644
--- a/Doc/library/importlib.rst
+++ b/Doc/library/importlib.rst
@@ -388,6 +388,11 @@ an :term:`importer`.
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::
"""An importer where source is stored in a dict."""