[Python-checkins] peps: [PEP 451] Fix a ModuleSpec attribute (parent) that was named inconsistently in

eric.snow python-checkins at python.org
Wed Oct 23 05:31:14 CEST 2013


http://hg.python.org/peps/rev/3ed796a8e348
changeset:   5209:3ed796a8e348
user:        Eric Snow <ericsnowcurrently at gmail.com>
date:        Tue Oct 22 21:27:10 2013 -0600
summary:
  [PEP 451] Fix a ModuleSpec attribute (parent) that was named inconsistently in different parts.

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


diff --git a/pep-0451.txt b/pep-0451.txt
--- a/pep-0451.txt
+++ b/pep-0451.txt
@@ -502,7 +502,7 @@
 ========================== ==============
 name                       __name__
 loader                     __loader__
-package                    __package__
+parent                     __package__
 origin                     __file__*
 cached                     __cached__*,**
 submodule_search_locations __path__**
@@ -513,7 +513,7 @@
 | \* Set on the module only if spec.has_location is true.
 | \*\* Set on the module only if the spec attribute is not None.
 
-While package and has_location are read-only properties, the remaining
+While parent and has_location are read-only properties, the remaining
 attributes can be replaced after the module spec is created and even
 after import is complete.  This allows for unusual cases where directly
 modifying the spec is the best option.  However, typical use should not

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


More information about the Python-checkins mailing list