From d5a77416064f8155b0a0817211541c296b49d2c7 Mon Sep 17 00:00:00 2001 From: Tom McDermott <spon@wattwatchers.com.au> Date: Tue, 6 Aug 2019 16:18:07 +1000 Subject: [PATCH] docs/library: Document that sys.version_info returns a 3-tuple only. See issue #4970. --- docs/library/sys.rst | 6 ++++++ 1 file changed, 6 insertions(+) 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. -- GitLab