[Python-checkins] peps: Clarifications.

eric.smith python-checkins at python.org
Thu May 24 12:15:40 CEST 2012


http://hg.python.org/peps/rev/a3fe77e6714c
changeset:   4423:a3fe77e6714c
user:        Eric V. Smith <eric at trueblade.com>
date:        Thu May 24 06:15:35 2012 -0400
summary:
  Clarifications.

files:
  pep-0420.txt |  8 ++++----
  1 files changed, 4 insertions(+), 4 deletions(-)


diff --git a/pep-0420.txt b/pep-0420.txt
--- a/pep-0420.txt
+++ b/pep-0420.txt
@@ -370,9 +370,9 @@
                child
                    three.py
 
-We add the first two parent paths to ``sys.path``. The third portion
-is added dynamically to the parent's ``__path__``, and the third
-portion is found when it is imported::
+We add the first two parent paths to ``sys.path``. The third
+``parent`` portion is added dynamically to ``parent.__path__``, and
+the third portion is then found when it is imported::
 
     # add the first two parent paths to sys.path
     >>> import sys
@@ -398,7 +398,7 @@
       File "<frozen importlib._bootstrap>", line 1250, in _find_and_load_unlocked
     ImportError: No module named 'parent.child.three'
 
-    # now add parent3 to the parent's __path__:
+    # now add the third parent portion to parent.__path__:
     >>> parent.__path__.append('Lib/test/namespace_pkgs/parent3/parent')
 
     # and now parent.child.three can be imported:

-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list