diff options
author | Fred Drake <fdrake@acm.org> | 2000-08-11 17:37:33 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2000-08-11 17:37:33 (GMT) |
commit | 7932ed0ac4fb3db990ebffce0d281865d680a10e (patch) | |
tree | ee0e700ea85672df7a3fff66be6daf06f69cd977 | |
parent | f40706375a65e7c915f8368167646ff75f00bdd7 (diff) | |
download | cpython-7932ed0ac4fb3db990ebffce0d281865d680a10e.zip cpython-7932ed0ac4fb3db990ebffce0d281865d680a10e.tar.gz cpython-7932ed0ac4fb3db990ebffce0d281865d680a10e.tar.bz2 |
Added material about documenting packages, so that the use of module
markup for packages is clear.
-rw-r--r-- | Doc/doc/doc.tex | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Doc/doc/doc.tex b/Doc/doc/doc.tex index 33cc443..7b7f157 100644 --- a/Doc/doc/doc.tex +++ b/Doc/doc/doc.tex @@ -610,6 +610,26 @@ distribution, to create or maintain whole documents or sections. \moduleauthor{Jane Doe}{jane.doe@frobnitz.org} \end{verbatim} + Python packages\index{packages} --- collections of modules that can + be described as a unit --- are documented using the same markup as + modules. The name for a module in a package should be typed in + ``fully qualified'' form (i.e., it should include the package name). + For example, a module ``foo'' in package ``bar'' should be marked as + \samp{\e module\{bar.foo\}}, and the beginning of the reference + section would appear as: + +\begin{verbatim} +\section{\module{bar.foo} --- + Module from the \module{bar} package} + +\declaremodule{extension}{bar.foo} +\modulesynopsis{Nifty module from the \module{bar} package.} +\moduleauthor{Jane Doe}{jane.doe@frobnitz.org} +\end{verbatim} + + Note that the name of a package is also marked using + \macro{module}. + \begin{macrodesc}{declaremodule}{\op{key}\p{type}\p{name}} Requires two parameters: module type (\samp{standard}, \samp{builtin}, \samp{extension}, or \samp{}), and the module |