From: Georg Brandl Date: Sat, 31 Jul 2010 19:59:55 +0000 (+0000) Subject: #5778: document that sys.version can contain a newline. X-Git-Tag: v3.2a2~600 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=721507b315eb9bc0ec53b56cbbd8404e5abbd98b;p=python #5778: document that sys.version can contain a newline. --- diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index 770c267b71..0e90ac07fa 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