summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libni.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-13 06:58:54 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-13 06:58:54 (GMT)
commit1947991c2f85db781fb3fcdc9e3bcfe2905e58e2 (patch)
tree260789493c7151408f009eaa84a7815ce4d28246 /Doc/lib/libni.tex
parentdc8af0acc1fbeec89e43f1ea43bf1a4d016f4fc6 (diff)
downloadcpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.zip
cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.tar.gz
cpython-1947991c2f85db781fb3fcdc9e3bcfe2905e58e2.tar.bz2
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty. Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}" everywhere. Some other minor nits that I happened to come across.
Diffstat (limited to 'Doc/lib/libni.tex')
-rw-r--r--Doc/lib/libni.tex16
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/lib/libni.tex b/Doc/lib/libni.tex
index 219f081..8a251da 100644
--- a/Doc/lib/libni.tex
+++ b/Doc/lib/libni.tex
@@ -28,20 +28,20 @@ To import module \code{ham} from package \code{spam} and use function
\code{hamneggs()} from that module, you can use any of the following
possibilities:
-\bcode\begin{verbatim}
+\begin{verbatim}
import spam.ham # *not* "import spam" !!!
spam.ham.hamneggs()
-\end{verbatim}\ecode
+\end{verbatim}
%
-\bcode\begin{verbatim}
+\begin{verbatim}
from spam import ham
ham.hamneggs()
-\end{verbatim}\ecode
+\end{verbatim}
%
-\bcode\begin{verbatim}
+\begin{verbatim}
from spam.ham import hamneggs
hamneggs()
-\end{verbatim}\ecode
+\end{verbatim}
%
\code{import spam} creates an
empty package named \code{spam} if one does not already exist, but it does
@@ -52,9 +52,9 @@ The only submodule that is guaranteed to be imported is
\code{spam.__init__} is a submodule of package spam. It can refer to
spam's namespace as \code{__} (two underscores):
-\bcode\begin{verbatim}
+\begin{verbatim}
__.spam_inited = 1 # Set a package-level variable
-\end{verbatim}\ecode
+\end{verbatim}
%
Additional initialization code (setting up variables, importing other
submodules) can be performed in \file{spam/__init__.py}.