]> granicus.if.org Git - python/commitdiff
Hide \varvars from "public" interface.
authorFred Drake <fdrake@acm.org>
Fri, 17 Apr 1998 02:17:00 +0000 (02:17 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 17 Apr 1998 02:17:00 +0000 (02:17 +0000)
Doc/texinputs/python.sty

index e634ce7010dade187de011dc7abd0903f4d4e3d5..831143f6322f7f9066343807a09eb46db087f16d 100644 (file)
 % \begin{cfuncdesc}{type}{name}{arglist}
 \newenvironment{cfuncdesc}[3]{
   \begin{fulllineitems}
-    \item[\code{#1 \bfcode{#2}(\varvars{#3})}\index{#2@{\idxcode{#2()}}}]
+    \item[\code{#1 \bfcode{#2}(\py@varvars{#3})}\index{#2@{\idxcode{#2()}}}]
 }{\end{fulllineitems}}
 
 % C variables ------------------------------------------------------------
 }{\end{fulllineitems}}
 
 % similar to {funcdesc}, but doesn't add to the index
-\newcommand{\funclineni}[2]{\item[\code{\bfcode{#1}(\varvars{#2})}]}
+\newcommand{\funclineni}[2]{\item[\code{\bfcode{#1}(\py@varvars{#2})}]}
 \newenvironment{funcdescni}[2]{
   \begin{fulllineitems}
     \funclineni{#1}{#2}
 \newenvironment{classdesc}[2]{
   \global\def\@thisclass{#1}
   \begin{fulllineitems}
-    \item[\code{\bfcode{#1}(\varvars{#2})}%
+    \item[\code{\bfcode{#1}(\py@varvars{#2})}%
       \withsubitem{(class in \@thismodule)}{\ttindex{#1}}]
     \def\baseclasses##1{}
 }{\end{fulllineitems}}
 % similar to {methoddesc}, but doesn't add to the index
 % (never actually uses the optional argument)
 \newcommand{\methodlineni}[3][\@classbadkey]{%
-  \item[\code{\bfcode{#2}(\varvars{#3})}]}
+  \item[\code{\bfcode{#2}(\py@varvars{#3})}]}
 \newenvironment{methoddescni}[3][\@classbadkey]{
   \begin{fulllineitems}
     \methodlineni{#2}{#3}
 \newcommand{\email}[1]{{\small\textsf{#1}}}
 \newcommand{\newsgroup}[1]{{\small\textsf{#1}}}
 
-\newcommand{\varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}
+\newcommand{\py@varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}
 
 \newif\iftexi\texifalse
 \newif\iflatex\latextrue