
python-checkins at python
May 22, 2012, 5:57 PM
Post #1 of 1
(33 views)
Permalink
|
|
peps: Make it clear that the lookups are being done via strings.
|
|
http://hg.python.org/peps/rev/9a340aeb9950 changeset: 4417:9a340aeb9950 user: Eric V. Smith <eric [at] trueblade> date: Tue May 22 20:57:41 2012 -0400 summary: Make it clear that the lookups are being done via strings. files: pep-0420.txt | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pep-0420.txt b/pep-0420.txt --- a/pep-0420.txt +++ b/pep-0420.txt @@ -409,9 +409,9 @@ not required. If the parent path is looked up by name instead of by holding a reference to it, then there is no restriction on how the parent path is modified or replaced. For a top-level namespace -package, the lookup would be module ``sys`` then attribute ``path``. -For a namespace package nested inside a module ``foo``, the lookup -would be module ``foo`` then attribute ``__path__``. +package, the lookup would be a module ``"sys"`` then an attribute +``"path"``. For a namespace package nested inside a module ``foo``, +the lookup would be module ``"foo"`` then attribute ``"__path__"``. Module reprs -- Repository URL: http://hg.python.org/peps
|