Mercurial > cpython-lru_cache-weakref
diff Doc/texinputs/python.sty @ 9524:c6a1103efa8a legacy-trunk
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.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 25 Nov 1998 17:13:28 +0000 |
| parents | 18f81faf4bd9 |
| children | 1437c2335b3b |
line wrap: on
line diff
--- a/Doc/texinputs/python.sty Wed Nov 25 17:09:19 1998 +0000 +++ b/Doc/texinputs/python.sty Wed Nov 25 17:13:28 1998 +0000 @@ -502,7 +502,8 @@ % 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}}]
