summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-07-27 20:33:17 (GMT)
committerFred Drake <fdrake@acm.org>1998-07-27 20:33:17 (GMT)
commit897d12bb87f269797d54e0a15583a01f44c2a49a (patch)
tree2d426dab81065835c42a3224c55d7f5c4922e11a
parentaf958c7be2602ee76496b7cbdb2e52903446eaa6 (diff)
downloadcpython-897d12bb87f269797d54e0a15583a01f44c2a49a.zip
cpython-897d12bb87f269797d54e0a15583a01f44c2a49a.tar.gz
cpython-897d12bb87f269797d54e0a15583a01f44c2a49a.tar.bz2
do_cmd_versionadded(),
do_cmd_versionchanged(): Support for new macros.
-rw-r--r--Doc/perl/python.perl14
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 107ed54..6695e54 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -225,6 +225,20 @@ sub do_cmd_deprecated{
"<b>Deprecated since release $release.</b>\n$reason<p>" . $_;
}
+sub do_cmd_versionadded{
+ # one parameter: \versionadded{version}
+ local($_) = @_;
+ my $release = next_argument();
+ "<b>New in version $release.</b><p>" . $_;
+}
+
+sub do_cmd_versionchanged{
+ # one parameter: \versionchanged{version}
+ local($_) = @_;
+ my $release = next_argument();
+ "<b>Changed in version $release.</b><p>" . $_;
+}
+
# file and samp are at the end of this file since they screw up fontlock.
# index commands