]> granicus.if.org Git - python/commitdiff
Minor nit that fixes a bunch of indexing: the way the classdesc
authorFred Drake <fdrake@acm.org>
Wed, 25 Nov 1998 17:13:28 +0000 (17:13 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 25 Nov 1998 17:13:28 +0000 (17:13 +0000)
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.

Doc/texinputs/python.sty

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