diff options
author | Fred Drake <fdrake@acm.org> | 2003-07-15 22:03:00 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-07-15 22:03:00 (GMT) |
commit | d51ce7de97f3aa1cf6ee65975475dce371cd3aea (patch) | |
tree | 725fb8139c358c87e77f92f9475c4a8b6a9d663f /Doc/ref/ref3.tex | |
parent | 4e72e0533d30f56ad3fb05f761e0283a26a1e64d (diff) | |
download | cpython-d51ce7de97f3aa1cf6ee65975475dce371cd3aea.zip cpython-d51ce7de97f3aa1cf6ee65975475dce371cd3aea.tar.gz cpython-d51ce7de97f3aa1cf6ee65975475dce371cd3aea.tar.bz2 |
Indexing is a mess; try to get the link targets closer to the relevant
text. There needs to be a better way.
Diffstat (limited to 'Doc/ref/ref3.tex')
-rw-r--r-- | Doc/ref/ref3.tex | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex index 167d885..785a995 100644 --- a/Doc/ref/ref3.tex +++ b/Doc/ref/ref3.tex @@ -610,7 +610,8 @@ is a shorthand for \code{x.__call__(arguments)}. \item[Modules] Modules are imported by the \keyword{import} statement (see -section~\ref{import}, ``The \keyword{import} statement''). +section~\ref{import}, ``The \keyword{import} statement'').% +\stindex{import}\obindex{module} A module object has a namespace implemented by a dictionary object (this is the dictionary referenced by the func_globals attribute of functions defined in the module). Attribute references are translated @@ -619,8 +620,6 @@ to lookups in this dictionary, e.g., \code{m.x} is equivalent to A module object does not contain the code object used to initialize the module (since it isn't needed once the initialization is done). -\stindex{import} -\obindex{module} Attribute assignment updates the module's namespace dictionary, e.g., \samp{m.x = 1} is equivalent to \samp{m.__dict__["x"] = 1}. |