Commit 50efcee8 authored by Fred Drake's avatar Fred Drake

Use \version to get the current Python version number, where possible. This

can only be done in the running text, and not in {verbatim} environments.
parent 9194e432
...@@ -35,12 +35,12 @@ refers to a directory (rather than a file). No item is added to ...@@ -35,12 +35,12 @@ refers to a directory (rather than a file). No item is added to
\indexiii{path}{configuration}{file} \indexiii{path}{configuration}{file}
For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are
set to \file{/usr/local}. The Python 1.5 library is then installed in set to \file{/usr/local}. The Python \version\ library is then
\file{/usr/local/lib/python1.5}. Suppose this has a subdirectory installed in \file{/usr/local/lib/python\version}. Suppose this has a
\file{/usr/local/python1.5/site-packages} with three subsubdirectories, subdirectory \file{/usr/local/python\version/site-packages} with three
\file{foo}, \file{bar} and \file{spam}, and two path configuration subsubdirectories, \file{foo}, \file{bar} and \file{spam}, and two
files, \file{foo.pth} and \file{bar.pth}. Assume \file{foo.pth} path configuration files, \file{foo.pth} and \file{bar.pth}. Assume
contains the following: \file{foo.pth} contains the following:
\begin{verbatim} \begin{verbatim}
# foo package configuration # foo package configuration
......
...@@ -35,12 +35,12 @@ refers to a directory (rather than a file). No item is added to ...@@ -35,12 +35,12 @@ refers to a directory (rather than a file). No item is added to
\indexiii{path}{configuration}{file} \indexiii{path}{configuration}{file}
For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are For example, suppose \code{sys.prefix} and \code{sys.exec_prefix} are
set to \file{/usr/local}. The Python 1.5 library is then installed in set to \file{/usr/local}. The Python \version\ library is then
\file{/usr/local/lib/python1.5}. Suppose this has a subdirectory installed in \file{/usr/local/lib/python\version}. Suppose this has a
\file{/usr/local/python1.5/site-packages} with three subsubdirectories, subdirectory \file{/usr/local/python\version/site-packages} with three
\file{foo}, \file{bar} and \file{spam}, and two path configuration subsubdirectories, \file{foo}, \file{bar} and \file{spam}, and two
files, \file{foo.pth} and \file{bar.pth}. Assume \file{foo.pth} path configuration files, \file{foo.pth} and \file{bar.pth}. Assume
contains the following: \file{foo.pth} contains the following:
\begin{verbatim} \begin{verbatim}
# foo package configuration # foo package configuration
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment