Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 74530ff

Browse files
committed
markup updates
1 parent 1b1ca0c commit 74530ff

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

Doc/lib/libfuture.tex

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ \section{\module{__future__} ---
2525

2626
Each statement in \file{__future__.py} is of the form:
2727

28-
\begin{verbatim}
29-
FeatureName = "_Feature(" OptionalRelease "," MandatoryRelease ","
30-
CompilerFlag ")"
31-
\end{verbatim}
28+
\begin{alltt}
29+
FeatureName = "_Feature(" \var{OptionalRelease} "," \var{MandatoryRelease} ","
30+
\var{CompilerFlag} ")"
31+
\end{alltt}
3232

33-
where, normally, OptionalRelease is less then MandatoryRelease, and
34-
both are 5-tuples of the same form as \code{sys.version_info}:
33+
where, normally, \var{OptionalRelease} is less than
34+
\var{MandatoryRelease}, and both are 5-tuples of the same form as
35+
\code{sys.version_info}:
3536

3637
\begin{verbatim}
3738
(PY_MAJOR_VERSION, # the 2 in 2.1.0a3; an int
@@ -42,28 +43,27 @@ \section{\module{__future__} ---
4243
)
4344
\end{verbatim}
4445

45-
OptionalRelease records the first release in which the feature was
46-
accepted.
46+
\var{OptionalRelease} records the first release in which the feature
47+
was accepted.
4748

48-
In the case of MandatoryReleases that have not yet occurred,
49-
MandatoryRelease predicts the release in which the feature will become
50-
part of the language.
49+
In the case of a \var{MandatoryRelease} that has not yet occurred,
50+
\var{MandatoryRelease} predicts the release in which the feature will
51+
become part of the language.
5152

52-
Else MandatoryRelease records when the feature became part of the
53-
language; in releases at or after that, modules no longer need a
53+
Else \var{MandatoryRelease} records when the feature became part of
54+
the language; in releases at or after that, modules no longer need a
5455
future statement to use the feature in question, but may continue to
55-
use such imports.
56+
use such imports.
5657

57-
MandatoryRelease may also be \code{None}, meaning that a planned
58+
\var{MandatoryRelease} may also be \code{None}, meaning that a planned
5859
feature got dropped.
5960

6061
Instances of class \class{_Feature} have two corresponding methods,
6162
\method{getOptionalRelease()} and \method{getMandatoryRelease()}.
6263

63-
CompilerFlag is the (bitfield) flag that should be passed in the
64+
\var{CompilerFlag} is the (bitfield) flag that should be passed in the
6465
fourth argument to the builtin function \function{compile()} to enable
6566
the feature in dynamically compiled code. This flag is stored in the
6667
\member{compiler_flag} attribute on \class{_Future} instances.
6768

6869
No feature description will ever be deleted from \module{__future__}.
69-

0 commit comments

Comments
 (0)