Make it clear that the lookups are being done via strings.

This commit is contained in:
Eric V. Smith 2012-05-22 20:57:41 -04:00
parent ca0afff714
commit a99e655130
1 changed files with 3 additions and 3 deletions

View File

@ -409,9 +409,9 @@ In the same thread [8]_, it was pointed out that this restriction is
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