|
358 | 358 | % \begin{cfuncdesc}{type}{name}{arglist} |
359 | 359 | \newenvironment{cfuncdesc}[3]{ |
360 | 360 | \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()}}}] |
362 | 362 | }{\end{fulllineitems}} |
363 | 363 |
|
364 | 364 | % C variables ------------------------------------------------------------ |
|
384 | 384 | }{\end{fulllineitems}} |
385 | 385 |
|
386 | 386 | % 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})}]} |
388 | 388 | \newenvironment{funcdescni}[2]{ |
389 | 389 | \begin{fulllineitems} |
390 | 390 | \funclineni{#1}{#2} |
|
395 | 395 | \newenvironment{classdesc}[2]{ |
396 | 396 | \global\def\@thisclass{#1} |
397 | 397 | \begin{fulllineitems} |
398 | | - \item[\code{\bfcode{#1}(\varvars{#2})}% |
| 398 | + \item[\code{\bfcode{#1}(\py@varvars{#2})}% |
399 | 399 | \withsubitem{(class in \@thismodule)}{\ttindex{#1}}] |
400 | 400 | \def\baseclasses##1{} |
401 | 401 | }{\end{fulllineitems}} |
|
427 | 427 | % similar to {methoddesc}, but doesn't add to the index |
428 | 428 | % (never actually uses the optional argument) |
429 | 429 | \newcommand{\methodlineni}[3][\@classbadkey]{% |
430 | | - \item[\code{\bfcode{#2}(\varvars{#3})}]} |
| 430 | + \item[\code{\bfcode{#2}(\py@varvars{#3})}]} |
431 | 431 | \newenvironment{methoddescni}[3][\@classbadkey]{ |
432 | 432 | \begin{fulllineitems} |
433 | 433 | \methodlineni{#2}{#3} |
|
546 | 546 | \newcommand{\email}[1]{{\small\textsf{#1}}} |
547 | 547 | \newcommand{\newsgroup}[1]{{\small\textsf{#1}}} |
548 | 548 |
|
549 | | -\newcommand{\varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}} |
| 549 | +\newcommand{\py@varvars}[1]{{\def\,{\/{\char`\,}}\var{#1}}} |
550 | 550 |
|
551 | 551 | \newif\iftexi\texifalse |
552 | 552 | \newif\iflatex\latextrue |
|
0 commit comments