mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
Added semi-structured support for feature deprecation.
This commit is contained in:
parent
f9fd4e8828
commit
26c73b7841
1 changed files with 23 additions and 1 deletions
|
@ -94,7 +94,13 @@
|
||||||
\evensidemargin \oddsidemargin
|
\evensidemargin \oddsidemargin
|
||||||
\marginparwidth 0.5in
|
\marginparwidth 0.5in
|
||||||
|
|
||||||
|
\@ifundefined{paperwidth}{
|
||||||
\textwidth 6.5in
|
\textwidth 6.5in
|
||||||
|
}{
|
||||||
|
\textwidth \paperwidth
|
||||||
|
\advance\textwidth by -2in
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
% Style parameters and macros used by most documents here
|
% Style parameters and macros used by most documents here
|
||||||
\raggedbottom
|
\raggedbottom
|
||||||
|
@ -450,6 +456,22 @@
|
||||||
\newcommand{\program}[1]{\strong{#1}}
|
\newcommand{\program}[1]{\strong{#1}}
|
||||||
|
|
||||||
|
|
||||||
|
% Deprecation stuff.
|
||||||
|
% Should be extended to allow an index / list of deprecated stuff. But
|
||||||
|
% there's a lot of stuff that needs to be done to make that automatable.
|
||||||
|
%
|
||||||
|
% First parameter is the release number that deprecates the feature, the
|
||||||
|
% second is the action the should be taken by users of the feature.
|
||||||
|
%
|
||||||
|
% Example:
|
||||||
|
%
|
||||||
|
% \deprecated {1.5.1}
|
||||||
|
% {Use \method{frobnicate()} instead.}
|
||||||
|
%
|
||||||
|
\newcommand{\deprecated}[2]{%
|
||||||
|
\strong{Deprecated since release #1.} #2\par}
|
||||||
|
|
||||||
|
|
||||||
\newenvironment{tableii}[4]{%
|
\newenvironment{tableii}[4]{%
|
||||||
\begin{center}%
|
\begin{center}%
|
||||||
\def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}%
|
\def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}%
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue