From: Fred Drake Date: Tue, 2 May 2000 17:28:36 +0000 (+0000) Subject: \versionchanged: Added optional parameter for explanation of change. X-Git-Tag: v2.0b1~1882 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6e8339e61236d00cb468c53c9b8d6258aabee78;p=thirdparty%2FPython%2Fcpython.git \versionchanged: Added optional parameter for explanation of change. --- diff --git a/Doc/texinputs/python.sty b/Doc/texinputs/python.sty index ded500d0eb1d..c2a66d6a2013 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.