[Python-checkins] r83358 - python/branches/py3k/Doc/library/sys.rst

georg.brandl python-checkins at python.org
Sat Jul 31 22:05:32 CEST 2010


Author: georg.brandl
Date: Sat Jul 31 22:05:31 2010
New Revision: 83358

Log:
#9442: do not document a specific format for sys.version; rather refer to version_info and the platform module.

Modified:
   python/branches/py3k/Doc/library/sys.rst

Modified: python/branches/py3k/Doc/library/sys.rst
==============================================================================
--- python/branches/py3k/Doc/library/sys.rst	(original)
+++ python/branches/py3k/Doc/library/sys.rst	Sat Jul 31 22:05:31 2010
@@ -935,15 +935,10 @@
 .. data:: version
 
    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]'``.  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
-      >>> sys.version
-      '1.5.2 (#0 Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)]'
+   information on the build number and compiler used.  This string is displayed
+   when the interactive interpreter is started.  Do not extract version information
+   out of it, rather, use :data:`version_info` and the functions provided by the
+   :mod:`platform` module.
 
 
 .. data:: api_version


More information about the Python-checkins mailing list