diff options
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/texinputs/python.sty | 10 |
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. |