mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
#5778: document that sys.version can contain a newline.
This commit is contained in:
parent
e87c0e1eaf
commit
721507b315
1 changed files with 3 additions and 2 deletions
|
@ -936,8 +936,9 @@ always available.
|
||||||
|
|
||||||
A string containing the version number of the Python interpreter plus additional
|
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
|
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
|
``'version (#build_number, build_date, build_time) [compiler]'``. There may be
|
||||||
three characters are used to identify the version in the installation
|
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::
|
directories (where appropriate on each platform). An example::
|
||||||
|
|
||||||
>>> import sys
|
>>> import sys
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue