Mercurial > cpython-lru_cache-weakref
diff Doc/texinputs/python.sty @ 17560:db928a277f8b legacy-trunk
\versionadded: Add support for including an explanatory note along with
the versioning information, similar to \versionchanged.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 18 Apr 2001 03:08:54 +0000 |
| parents | 4622af4da9e2 |
| children | b4b3657cb1fa b664b02c3e91 |
line wrap: on
line diff
--- a/Doc/texinputs/python.sty Wed Apr 18 01:20:21 2001 +0000 +++ b/Doc/texinputs/python.sty Wed Apr 18 03:08:54 2001 +0000 @@ -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. }%
