summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom McDermott <spon@wattwatchers.com.au>2019-08-06 16:18:07 +1000
committerDamien George <damien.p.george@gmail.com>2019-08-15 18:12:22 +1000
commitd5a77416064f8155b0a0817211541c296b49d2c7 (patch)
treef4d4ae23b2af4948a95c0eb7f1a0bd9a47448e83
parent6592a30f4b6ed056411361d0c703fe814886e65b (diff)
docs/library: Document that sys.version_info returns a 3-tuple only.
See issue #4970.
-rw-r--r--docs/library/sys.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/library/sys.rst b/docs/library/sys.rst
index aee2e54ee..d3cc308d8 100644
--- a/docs/library/sys.rst
+++ b/docs/library/sys.rst
@@ -134,3 +134,9 @@ Constants
.. data:: version_info
Python language version that this implementation conforms to, as a tuple of ints.
+
+ .. admonition:: Difference to CPython
+ :class: attention
+
+ Only the first three version numbers (major, minor, micro) are supported and
+ they can be referenced only by index, not by name.