summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-02-06 01:32:42 (GMT)
committerEric Smith <eric@trueblade.com>2009-02-06 01:32:42 (GMT)
commit0e5b562987303912f8236bfe90c5bf0f093d8d63 (patch)
tree04b1efe719cd278576fed77695135d01dcfb6b0e /Doc
parentd3409deddc7fc24171514debf2ab2128e337d97d (diff)
downloadcpython-0e5b562987303912f8236bfe90c5bf0f093d8d63.zip
cpython-0e5b562987303912f8236bfe90c5bf0f093d8d63.tar.gz
cpython-0e5b562987303912f8236bfe90c5bf0f093d8d63.tar.bz2
Merged revisions 69331 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r69331 | eric.smith | 2009-02-05 19:48:26 -0500 (Thu, 05 Feb 2009) | 2 lines Implement issue #4285, convert sys.version_info to a named tuple. Patch by Ross Light. ........
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sys.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index aecef74..a00c516 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -769,8 +769,12 @@ always available.
*micro*, *releaselevel*, and *serial*. All values except *releaselevel* are
integers; the release level is ``'alpha'``, ``'beta'``, ``'candidate'``, or
``'final'``. The ``version_info`` value corresponding to the Python version 2.0
- is ``(2, 0, 0, 'final', 0)``.
+ is ``(2, 0, 0, 'final', 0)``. The components can also be accessed by name,
+ so ``sys.version_info[0]`` is equivalent to ``sys.version_info.major``
+ and so on.
+ .. versionchanged:: 2.7
+ Added named component attributes
.. data:: warnoptions