summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-02-19 15:30:25 (GMT)
committerFred Drake <fdrake@acm.org>1999-02-19 15:30:25 (GMT)
commit4e7c2054706cb6a66608958f6e9a948ada7848d4 (patch)
tree4e81b8cdcf593bc0345e6654480c7e72f1ccc183
parentcd71aa2a38d9cebd84ba442b714621c65b615a51 (diff)
downloadcpython-4e7c2054706cb6a66608958f6e9a948ada7848d4.zip
cpython-4e7c2054706cb6a66608958f6e9a948ada7848d4.tar.gz
cpython-4e7c2054706cb6a66608958f6e9a948ada7848d4.tar.bz2
Update description of what modules "look like" when printed.
-rw-r--r--Doc/lib/libstdtypes.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex
index c3a54f6..581adec 100644
--- a/Doc/lib/libstdtypes.tex
+++ b/Doc/lib/libstdtypes.tex
@@ -255,7 +255,7 @@ See the section on built-in functions for an exact definition.
\end{description}
% XXXJH exceptions: overflow (when? what operations?) zerodivision
-\subsubsection{Bit-string Operations on Integer Types}
+\subsubsection{Bit-string Operations on Integer Types \label{bitstring-ops}}
\nodename{Bit-string Operations}
Plain and long integer types support additional operations that make
@@ -590,6 +590,7 @@ and \var{k} is not in the map, \code{None} is returned.
The interpreter supports several other kinds of objects.
Most of these support only one or two operations.
+
\subsubsection{Modules \label{typesmodules}}
The only special operation on a module is attribute access:
@@ -609,13 +610,17 @@ possible (i.e., you can write \code{\var{m}.__dict__['a'] = 1}, which
defines \code{\var{m}.a} to be \code{1}, but you can't write
\code{\var{m}.__dict__ = \{\}}.
-Modules are written like this: \code{<module 'sys'>}.
+Modules built into the interpreter are written like this:
+\code{<module 'sys' (built-in)>}. If loaded from a file, they are
+written as \code{<module 'os' from '/usr/local/lib/python1.5/os.pyc'>}.
+
\subsubsection{Classes and Class Instances \label{typesobjects}}
\nodename{Classes and Instances}
See Chapters 3 and 7 of the \emph{Python Reference Manual} for these.
+
\subsubsection{Functions \label{typesfunctions}}
Function objects are created by function definitions. The only