summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-31 20:05:31 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-31 20:05:31 (GMT)
commite42a59daec40d1238a0189cde735f97aebe2d0b7 (patch)
treef0b8fc9975962dfff4191a91af0c7aba92fdcd62 /Doc/library/sys.rst
parent721507b315eb9bc0ec53b56cbbd8404e5abbd98b (diff)
downloadcpython-e42a59daec40d1238a0189cde735f97aebe2d0b7.zip
cpython-e42a59daec40d1238a0189cde735f97aebe2d0b7.tar.gz
cpython-e42a59daec40d1238a0189cde735f97aebe2d0b7.tar.bz2
#9442: do not document a specific format for sys.version; rather refer to version_info and the platform module.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst13
1 files changed, 4 insertions, 9 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 0e90ac0..4d85099 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -935,15 +935,10 @@ always available.
.. data:: version
A string containing the version number of the Python interpreter plus additional
- information on the build number and compiler used. It has a value of the form
- ``'version (#build_number, build_date, build_time) [compiler]'``. There may be
- a newline character preceding the opening bracket with of the compiler info.
- The first three characters are used to identify the version in the installation
- directories (where appropriate on each platform). An example::
-
- >>> import sys
- >>> sys.version
- '1.5.2 (#0 Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)]'
+ information on the build number and compiler used. This string is displayed
+ when the interactive interpreter is started. Do not extract version information
+ out of it, rather, use :data:`version_info` and the functions provided by the
+ :mod:`platform` module.
.. data:: api_version