summaryrefslogtreecommitdiffstats
path: root/Doc/texinputs
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-18 03:08:54 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-18 03:08:54 (GMT)
commitfdfb05bb0b49d860eb035d779b0ae56e5ca875ed (patch)
treeb191fd00ae1d5e16e682d59b04b58fc1d125efd2 /Doc/texinputs
parent12b6457e24924ff60cf89fd19a584185a5d6c256 (diff)
downloadcpython-fdfb05bb0b49d860eb035d779b0ae56e5ca875ed.zip
cpython-fdfb05bb0b49d860eb035d779b0ae56e5ca875ed.tar.gz
cpython-fdfb05bb0b49d860eb035d779b0ae56e5ca875ed.tar.bz2
\versionadded: Add support for including an explanatory note along with
the versioning information, similar to \versionchanged.
Diffstat (limited to 'Doc/texinputs')
-rw-r--r--Doc/texinputs/python.sty9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty
index 8a61d87..795882d 100644
--- a/Doc/texinputs/python.sty
+++ b/Doc/texinputs/python.sty
@@ -872,8 +872,13 @@
% \versionadded{1.5.2}
% \versionchanged[short explanation]{2.0}
%
-\newcommand{\versionadded}[1]{%
- { New in version #1. }}
+\newcommand{\versionadded}[2][\py@badkey]{%
+ \ifx#1\@undefined%
+ { New in version #2. }%
+ \else%
+ { New in version #2:\ #1. }%
+ \fi%
+}
\newcommand{\versionchanged}[2][\py@badkey]{%
\ifx#1\@undefined%
{ Changed in version #2. }%