[Python-checkins] CVS: python/dist/src/Doc/texinputs python.sty,1.73.2.1,1.73.2.2

Fred L. Drake fdrake@users.sourceforge.net
Fri, 22 Jun 2001 08:51:30 -0700


Update of /cvsroot/python/python/dist/src/Doc/texinputs
In directory usw-pr-cvs1:/tmp/cvs-serv3264/texinputs

Modified Files:
      Tag: release21-maint
	python.sty 
Log Message:

Add support for the classdesc* environment and the \releaseinfo and
\setreleaseinfo macros added to the CVS head.


Index: python.sty
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/python.sty,v
retrieving revision 1.73.2.1
retrieving revision 1.73.2.2
diff -C2 -r1.73.2.1 -r1.73.2.2
*** python.sty	2001/04/18 17:30:26	1.73.2.1
--- python.sty	2001/06/22 15:51:28	1.73.2.2
***************
*** 624,627 ****
--- 624,636 ----
  }{\end{fulllineitems}}
  
+ % \begin{classdesc*}{name}
+ \newenvironment{classdesc*}[1]{
+   % Using \renewcommand doesn't work for this, for unknown reasons:
+   \global\def\py@thisclass{#1}
+   \begin{fulllineitems}
+     \item[\strong{class }\code{\bfcode{#1}}%
+       \index{#1@{\py@idxcode{#1}} (class in \py@thismodule)}]
+ }{\end{fulllineitems}}
+ 
  % \begin{excclassdesc}{name}{constructor args}
  % but indexes as an exception
***************
*** 634,637 ****
--- 643,649 ----
  }{\end{fulllineitems}}
  
+ % There is no corresponding {excclassdesc*} environment.  To describe
+ % a class exception without parameters, use the {excdesc} environment.
+ 
  
  \let\py@classbadkey=\@undefined
***************
*** 1037,1040 ****
--- 1049,1053 ----
  \newcommand{\version}{}
  \newcommand{\shortversion}{}
+ \newcommand{\releaseinfo}{}
  \newcommand{\releasename}{Release}
  \newcommand{\release}[1]{%
***************
*** 1043,1046 ****
--- 1056,1061 ----
  \newcommand{\setshortversion}[1]{%
    \renewcommand{\shortversion}{#1}}
+ \newcommand{\setreleaseinfo}[1]{%
+   \renewcommand{\releaseinfo}{#1}}
  
  % Allow specification of the author's address separately from the