Minor nit that fixes a bunch of indexing: the way the classdesc

environment saves the name of the last class described, method and
member descriptions were not picking it up correctly.  Thus, many
index entries were described as "( method)" instead of "(FooClass
method)".  Multiple entries were collapsed in the index when
methods/members from multiple classes share the same name.
This commit is contained in:
Fred Drake 1998-11-25 17:13:28 +00:00
parent e839199014
commit 1cbd196f96
1 changed files with 2 additions and 1 deletions

View File

@ -502,7 +502,8 @@
% classes ---------------------------------------------------------------- % classes ----------------------------------------------------------------
% \begin{classdesc}{name}{constructor args} % \begin{classdesc}{name}{constructor args}
\newenvironment{classdesc}[2]{ \newenvironment{classdesc}[2]{
\renewcommand{\py@thisclass}{#1} % Using \renewcommand doesn't work for this, for unknown reasons:
\global\def\py@thisclass{#1}
\begin{fulllineitems} \begin{fulllineitems}
\item[\code{\bfcode{#1}(\py@varvars{#2})}% \item[\code{\bfcode{#1}(\py@varvars{#2})}%
\withsubitem{(class in \py@thismodule)}{\ttindex{#1}}] \withsubitem{(class in \py@thismodule)}{\ttindex{#1}}]