summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-05-02 17:28:36 (GMT)
committerFred Drake <fdrake@acm.org>2000-05-02 17:28:36 (GMT)
commita6e8339e61236d00cb468c53c9b8d6258aabee78 (patch)
tree12a06c98d2a9835924450f025ef397d1f200ca12
parent1b6aecb08c5496402189f455c4f07654902a8a51 (diff)
downloadcpython-a6e8339e61236d00cb468c53c9b8d6258aabee78.zip
cpython-a6e8339e61236d00cb468c53c9b8d6258aabee78.tar.gz
cpython-a6e8339e61236d00cb468c53c9b8d6258aabee78.tar.bz2
\versionchanged: Added optional parameter for explanation of change.
-rw-r--r--Doc/texinputs/python.sty10
1 files changed, 8 insertions, 2 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index ded500d..c2a66d6 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -838,11 +838,17 @@
%
% Example:
% \versionadded{1.5.2}
+% \versionchanged[short explanation]{1.6}
%
\newcommand{\versionadded}[1]{%
{ New in version #1. }}
-\newcommand{\versionchanged}[1]{%
- { Changed in version #1. }}
+\newcommand{\versionchanged}[2][\py@badkey]{%
+ \ifx#1\@undefined%
+ { Changed in version #2. }%
+ \else%
+ { Changed in version #2:\ #1. }%
+ \fi%
+}
% Tables.