Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 721507b

Browse files
committed
#5778: document that sys.version can contain a newline.
1 parent e87c0e1 commit 721507b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/sys.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -936,8 +936,9 @@ always available.
936936

937937
A string containing the version number of the Python interpreter plus additional
938938
information on the build number and compiler used. It has a value of the form
939-
``'version (#build_number, build_date, build_time) [compiler]'``. The first
940-
three characters are used to identify the version in the installation
939+
``'version (#build_number, build_date, build_time) [compiler]'``. There may be
940+
a newline character preceding the opening bracket with of the compiler info.
941+
The first three characters are used to identify the version in the installation
941942
directories (where appropriate on each platform). An example::
942943

943944
>>> import sys

0 commit comments

Comments
 (0)