diff options
author | Raymond Hettinger <python@rcn.com> | 2003-01-19 13:08:18 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2003-01-19 13:08:18 (GMT) |
commit | e701dcbabd43cfc9dc77e6f8b3e0325accec4164 (patch) | |
tree | badaf89ceb12cafd0bc6e28977be6bc6a298700b /Doc/ref/ref6.tex | |
parent | 4bad9ba2827a3cac04b2cffaf0825224b7dc3c55 (diff) | |
download | cpython-e701dcbabd43cfc9dc77e6f8b3e0325accec4164.zip cpython-e701dcbabd43cfc9dc77e6f8b3e0325accec4164.tar.gz cpython-e701dcbabd43cfc9dc77e6f8b3e0325accec4164.tar.bz2 |
SF patch #634866: Alex Martelli's corrections to the ref manual.
Backport candidate. All but one or two of these changes
are applicable to 2.2.2.
Diffstat (limited to 'Doc/ref/ref6.tex')
-rw-r--r-- | Doc/ref/ref6.tex | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex index 03dec51..fe9e198 100644 --- a/Doc/ref/ref6.tex +++ b/Doc/ref/ref6.tex @@ -638,9 +638,15 @@ identifier in the list. The form with \keyword{from} performs step \indexii{importing}{module} \indexii{name}{binding} \kwindex{from} -% XXX Need to define what ``initialize'' means here -The system maintains a table of modules that have been initialized, +In this context, to ``initialize'' a built-in or extension module means to +call an initialization function that the module must provide for the purpose +(in the reference implementation, the function's name is obtained by +prepending string ``init'' to the module's name); to ``initialize'' a +Python-coded module means to execute the module's body. + +The system maintains a table of modules that have been or are being +initialized, indexed by module name. This table is accessible as \code{sys.modules}. When a module name is found in this table, step (1) is finished. If not, a search for a module |