Commit e42a59da authored by Georg Brandl's avatar Georg Brandl

#9442: do not document a specific format for sys.version; rather refer to...

#9442: do not document a specific format for sys.version; rather refer to version_info and the platform module.
parent 721507b3
...@@ -935,15 +935,10 @@ always available. ...@@ -935,15 +935,10 @@ always available.
.. data:: version .. data:: version
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. This string is displayed
``'version (#build_number, build_date, build_time) [compiler]'``. There may be when the interactive interpreter is started. Do not extract version information
a newline character preceding the opening bracket with of the compiler info. out of it, rather, use :data:`version_info` and the functions provided by the
The first three characters are used to identify the version in the installation :mod:`platform` module.
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)]'
.. data:: api_version .. data:: api_version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment