summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-31 19:59:55 (GMT)
committerGeorg Brandl <georg@python.org>2010-07-31 19:59:55 (GMT)
commit721507b315eb9bc0ec53b56cbbd8404e5abbd98b (patch)
treebe55bd83617410db8083f8b4bdc29d0ab0334e58 /Doc/library/sys.rst
parente87c0e1eaf56a7e4e3d19eb89fd26e8c4a5217d3 (diff)
downloadcpython-721507b315eb9bc0ec53b56cbbd8404e5abbd98b.zip
cpython-721507b315eb9bc0ec53b56cbbd8404e5abbd98b.tar.gz
cpython-721507b315eb9bc0ec53b56cbbd8404e5abbd98b.tar.bz2
#5778: document that sys.version can contain a newline.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 770c267..0e90ac0 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -936,8 +936,9 @@ always available.
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]'``. The first
- three characters are used to identify the version in the installation
+ ``'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