[Python-checkins] CVS: python/dist/src/Doc/texinputs python.sty,1.63,1.64
Fred L. Drake
python-dev@python.org
Fri, 8 Sep 2000 23:01:27 -0700
Update of /cvsroot/python/python/dist/src/Doc/texinputs
In directory slayer.i.sourceforge.net:/tmp/cvs-serv15868/texinputs
Modified Files:
python.sty
Log Message:
excclassdesc: New environment. For use in documenting class-based
exceptions which have interesting constructor signatures.
\pep, \seepep: New macros. Equivalent to \rfc and \seerfc, but
referring to the PEP series instead of the Internet RFC
series of documents.
Index: python.sty
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/texinputs/python.sty,v
retrieving revision 1.63
retrieving revision 1.64
diff -C2 -r1.63 -r1.64
*** python.sty 2000/08/17 04:25:59 1.63
--- python.sty 2000/09/09 06:01:25 1.64
***************
*** 602,605 ****
--- 602,615 ----
}{\end{fulllineitems}}
+ % \begin{excclassdesc}{name}{constructor args}
+ % but indexes as an exception
+ \newenvironment{excclassdesc}[2]{
+ % 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{(exception in \py@thismodule)}{\ttindex{#1}}]
+ }{\end{fulllineitems}}
+
\let\py@classbadkey=\@undefined
***************
*** 804,807 ****
--- 814,818 ----
\newcommand{\manpage}[2]{{\emph{#1}(#2)}}
+ \newcommand{\pep}[1]{PEP #1\index{Python Enhancement Proposals!PEP #1}}
\newcommand{\rfc}[1]{RFC #1\index{RFC!RFC #1}}
\newcommand{\program}[1]{\strong{#1}}
***************
*** 911,914 ****
--- 922,933 ----
\end{fulllineitems}
}
+ }
+ % \seepep{number}{title}{why it's interesting}
+ \newcommand{\py@seepep}[3]{%
+ \par%
+ \begin{fulllineitems}
+ \item[\pep{#1}, ``\emph{#2}'']
+ #3
+ \end{fulllineitems}
}
% \seerfc{number}{title}{why it's interesting}