Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 300775d

Browse files
committed
Hide \varvars from "public" interface.
1 parent 0893205 commit 300775d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/texinputs/python.sty

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@
358358
% \begin{cfuncdesc}{type}{name}{arglist}
359359
\newenvironment{cfuncdesc}[3]{
360360
\begin{fulllineitems}
361-
\item[\code{#1 \bfcode{#2}(\varvars{#3})}\index{#2@{\idxcode{#2()}}}]
361+
\item[\code{#1 \bfcode{#2}(\py@varvars{#3})}\index{#2@{\idxcode{#2()}}}]
362362
}{\end{fulllineitems}}
363363

364364
% C variables ------------------------------------------------------------
@@ -384,7 +384,7 @@
384384
}{\end{fulllineitems}}
385385

386386
% similar to {funcdesc}, but doesn't add to the index
387-
\newcommand{\funclineni}[2]{\item[\code{\bfcode{#1}(\varvars{#2})}]}
387+
\newcommand{\funclineni}[2]{\item[\code{\bfcode{#1}(\py@varvars{#2})}]}
388388
\newenvironment{funcdescni}[2]{
389389
\begin{fulllineitems}
390390
\funclineni{#1}{#2}
@@ -395,7 +395,7 @@
395395
\newenvironment{classdesc}[2]{
396396
\global\def\@thisclass{#1}
397397
\begin{fulllineitems}
398-
\item[\code{\bfcode{#1}(\varvars{#2})}%
398+
\item[\code{\bfcode{#1}(\py@varvars{#2})}%
399399
\withsubitem{(class in \@thismodule)}{\ttindex{#1}}]
400400
\def\baseclasses##1{}
401401
}{\end{fulllineitems}}
@@ -427,7 +427,7 @@
427427
% similar to {methoddesc}, but doesn't add to the index
428428
% (never actually uses the optional argument)
429429
\newcommand{\methodlineni}[3][\@classbadkey]{%
430-
\item[\code{\bfcode{#2}(\varvars{#3})}]}
430+
\item[\code{\bfcode{#2}(\py@varvars{#3})}]}
431431
\newenvironment{methoddescni}[3][\@classbadkey]{
432432
\begin{fulllineitems}
433433
\methodlineni{#2}{#3}
@@ -546,7 +546,7 @@
546546
\newcommand{\email}[1]{{\small\textsf{#1}}}
547547
\newcommand{\newsgroup}[1]{{\small\textsf{#1}}}
548548

549-
\newcommand{\varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}
549+
\newcommand{\py@varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}}
550550

551551
\newif\iftexi\texifalse
552552
\newif\iflatex\latextrue

0 commit comments

Comments
 (0)