diff options
author | Éric Araujo <merwok@netwok.org> | 2011-10-05 00:34:28 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-10-05 00:34:28 (GMT) |
commit | 2e4a2b6434ed340cdbf987cf98a2b46fe4d04650 (patch) | |
tree | 94895d7cfaf98b8102d3d08efc58c09a954ec855 /Doc/library/sys.rst | |
parent | 656b04ecf6b6c7eaac194b2bc8ca3c797f1f5df4 (diff) | |
download | cpython-2e4a2b6434ed340cdbf987cf98a2b46fe4d04650.zip cpython-2e4a2b6434ed340cdbf987cf98a2b46fe4d04650.tar.gz cpython-2e4a2b6434ed340cdbf987cf98a2b46fe4d04650.tar.bz2 |
Fix markup used in the documentation of sys.prefix and sys.exec_prefix.
- Using the file role with {placeholders} is IMO clearer than fake
Python code.
- The fact that sys.version[:3] gives '2.7' is a CPython detail and
should not be advertised (see #9442), even if some stdlib modules
currently rely on that detail.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r-- | Doc/library/sys.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 30e784e..80f4cd7 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -207,10 +207,10 @@ always available. Python files are installed; by default, this is also ``'/usr/local'``. This can be set at build time with the ``--exec-prefix`` argument to the :program:`configure` script. Specifically, all configuration files (e.g. the - :file:`pyconfig.h` header file) are installed in the directory ``exec_prefix + - '/lib/pythonversion/config'``, and shared library modules are installed in - ``exec_prefix + '/lib/pythonversion/lib-dynload'``, where *version* is equal to - ``version[:3]``. + :file:`pyconfig.h` header file) are installed in the directory + :file:`{exec_prefix}/lib/python{X.Y}/config', and shared library modules are + installed in :file:`{exec_prefix}/lib/python{X.Y}/lib-dynload`, where *X.Y* + is the version number of Python, for example ``2.7``. .. data:: executable @@ -766,10 +766,10 @@ always available. independent Python files are installed; by default, this is the string ``'/usr/local'``. This can be set at build time with the ``--prefix`` argument to the :program:`configure` script. The main collection of Python - library modules is installed in the directory ``prefix + '/lib/pythonversion'`` + library modules is installed in the directory :file:`{prefix}/lib/python{X.Y}`` while the platform independent header files (all except :file:`pyconfig.h`) are - stored in ``prefix + '/include/pythonversion'``, where *version* is equal to - ``version[:3]``. + stored in :file:`{prefix}/include/python{X.Y}``, where *X.Y* is the version + number of Python, for example ``2.7``. .. data:: ps1 |