summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-01-22 15:55:21 (GMT)
committerFred Drake <fdrake@acm.org>1998-01-22 15:55:21 (GMT)
commitdd28d57fd05bfc62c9b73fc1a18f59d38a8b1405 (patch)
tree239a5ce7919f348b4c8eb4b01c453cd0f1743e80 /Doc
parentf06777dd7cbaf5a0940a0c72d811ecbb7537d8ce (diff)
downloadcpython-dd28d57fd05bfc62c9b73fc1a18f59d38a8b1405.zip
cpython-dd28d57fd05bfc62c9b73fc1a18f59d38a8b1405.tar.gz
cpython-dd28d57fd05bfc62c9b73fc1a18f59d38a8b1405.tar.bz2
Revised new macros after discussion with Guido: Always use full names of
semantic concepts. Added two new ones (not discussed with Guido: \constant{}: Markup for constants defined in Python modules. \cfunction{}: Markup for C functions; these should probably be distinguished by font, but are not at this time (since they're typically \code{} at this point).
Diffstat (limited to 'Doc')
-rw-r--r--Doc/myformat.sty16
1 files changed, 10 insertions, 6 deletions
diff --git a/Doc/myformat.sty b/Doc/myformat.sty
index 059816b..8b8f917 100644
--- a/Doc/myformat.sty
+++ b/Doc/myformat.sty
@@ -213,15 +213,19 @@
% which are used to refer to instances of specific language constructs. See
% the names for specific semantic assignments.
%
-% For now, don't do anything really fancy with them, but note that \func and
-% \method append trailing parentheses.
+% For now, don't do anything really fancy with them; just use them as logical
+% markup. This might change in the future.
%
\let\module=\code
-\let\kw=\code
-\let\exc=\code
+\let\keyword=\code
+\let\exception=\code
\let\class=\code
-\newcommand{\func}[1]{\code{#1()}}
-\newcommand{\method}[1]{\code{#1()}}
+\let\function=\code
+\let\cfunction=\code
+\let\method=\code
+
+% constants defined in Python modules, not language constants:
+\let\constant=\code
\newcommand{\manpage}[2]{{\emph{#1}(#2)}}
\let\email=\code