]> granicus.if.org Git - python/commitdiff
Revised new macros after discussion with Guido: Always use full names of
authorFred Drake <fdrake@acm.org>
Thu, 22 Jan 1998 15:55:21 +0000 (15:55 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 22 Jan 1998 15:55:21 +0000 (15:55 +0000)
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).

Doc/myformat.sty

index 059816b78416a0886fb7a2662dd2880e0164c145..8b8f917141884cfcf36e821f3a98a58287239d47 100644 (file)
 % 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