mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Make the embedded hyperlinks work.
This commit is contained in:
parent
b36615d584
commit
984920bbad
1 changed files with 7 additions and 6 deletions
|
|
@ -86,10 +86,10 @@ by executing:
|
||||||
from __future__ import division
|
from __future__ import division
|
||||||
\end{verbatim}
|
\end{verbatim}
|
||||||
|
|
||||||
the expression \code{11/4} would evaluate to \code{2.75}. By
|
the expression \code{11/4} would evaluate to \code{2.75}. By actually
|
||||||
actually importing the \refmodule[future]{__future__} module and
|
importing the \ulink{\module{__future__}}{../lib/module-future.html}
|
||||||
evaluating its variables, you can see when a new feature was first
|
module and evaluating its variables, you can see when a new feature
|
||||||
added to the language and when it will become the default:
|
was first added to the language and when it will become the default:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
>>> import __future__
|
>>> import __future__
|
||||||
|
|
@ -256,8 +256,9 @@ distinguished by their namespaces. Namespaces also aid readability
|
||||||
and maintainability by making it clear which modules implement a
|
and maintainability by making it clear which modules implement a
|
||||||
function. For instance, writing \function{random.seed()} or
|
function. For instance, writing \function{random.seed()} or
|
||||||
{}\function{itertools.izip()} makes it clear that those functions are
|
{}\function{itertools.izip()} makes it clear that those functions are
|
||||||
implemented by the \refmodule{random} and \refmodule{itertools}
|
implemented by the \ulink{\module{random}}{../lib/module-random.html}
|
||||||
modules respectively.
|
and \ulink{\module{itertools}}{../lib/module-itertools.html} modules
|
||||||
|
respectively.
|
||||||
|
|
||||||
\index{nested scope}
|
\index{nested scope}
|
||||||
\item[nested scope]
|
\item[nested scope]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue