[Python-checkins] python/dist/src/Doc/texinputs python.sty,1.94,1.95
fdrake@sourceforge.net
fdrake@sourceforge.net
Mon, 15 Apr 2002 13:48:43 -0700
Update of /cvsroot/python/python/dist/src/Doc/texinputs
In directory usw-pr-cvs1:/tmp/cvs-serv15159/texinputs
Modified Files:
python.sty
Log Message:
Separate out a \cfuncline macro from the cfuncdesc environment.
This matches many other of the *desc environments, and is useful when
multiple functions share a description.
Index: python.sty
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/python.sty,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** python.sty 12 Apr 2002 22:48:02 -0000 1.94
--- python.sty 15 Apr 2002 20:48:40 -0000 1.95
***************
*** 586,592 ****
% Note that the [refcount] slot should only be filled in by
% tools/anno-api.py; it pulls the value from the refcounts database.
\newenvironment{cfuncdesc}[4][\py@badkey]{
\begin{fulllineitems}
! \item[\code{#2 \bfcode{#3}(\py@varvars{#4})}\index{#3@{\py@idxcode{#3()}}}]
\ifx#1\@undefined\else%
\emph{Return value: \textbf{#1}.}\\
--- 586,595 ----
% Note that the [refcount] slot should only be filled in by
% tools/anno-api.py; it pulls the value from the refcounts database.
+ \newcommand{\cfuncline}[3]{
+ \item[\code{#1 \bfcode{#2}(\py@varvars{#3})}\index{#2@{\py@idxcode{#2()}}}]
+ }
\newenvironment{cfuncdesc}[4][\py@badkey]{
\begin{fulllineitems}
! \cfuncline{#2}{#3}{#4}
\ifx#1\@undefined\else%
\emph{Return value: \textbf{#1}.}\\