diff options
author | Fred Drake <fdrake@acm.org> | 1998-11-25 17:13:28 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1998-11-25 17:13:28 (GMT) |
commit | 1cbd196f9645622832890c3d70410c4c06edc416 (patch) | |
tree | 9a09459534d442ef64fff725467df8bf6bb2a187 /Doc/texinputs/python.sty | |
parent | e839199014701b81a59071e3f3a6f43867a69b40 (diff) | |
download | cpython-1cbd196f9645622832890c3d70410c4c06edc416.zip cpython-1cbd196f9645622832890c3d70410c4c06edc416.tar.gz cpython-1cbd196f9645622832890c3d70410c4c06edc416.tar.bz2 |
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.
Diffstat (limited to 'Doc/texinputs/python.sty')
-rw-r--r-- | Doc/texinputs/python.sty | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index 0df3602..c49e7bf 100644 --- a/Doc/texinputs/python.sty +++ b/Doc/texinputs/python.sty @@ -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}}] |