summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Verlinde <jos_verlinde@hotmail.com>2024-01-11 22:43:41 +0100
committerDamien George <damien@micropython.org>2024-02-07 15:51:25 +1100
commit2bdaa1bedede63ee2380aa5de67802cb5d2cfcd1 (patch)
treeee9c15c13c76ab207d4dfcc884c9d2713713e0f1
parent781366e476af599a5b9038970bc19137ab40e766 (diff)
docs/library/sys.rst: Document implementation.version.releaselevel.
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
-rw-r--r--docs/library/sys.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/library/sys.rst b/docs/library/sys.rst
index c8eb4b5c5..7b34a0e31 100644
--- a/docs/library/sys.rst
+++ b/docs/library/sys.rst
@@ -69,7 +69,7 @@ Constants
MicroPython, it has following attributes:
* *name* - string "micropython"
- * *version* - tuple (major, minor, micro), e.g. (1, 7, 0)
+ * *version* - tuple (major, minor, micro, releaselevel), e.g. (1, 22, 0, '')
* *_machine* - string describing the underlying machine
* *_mpy* - supported mpy file-format version (optional attribute)
@@ -77,6 +77,9 @@ Constants
Python implementations (note that it still may not exist in the very
minimal ports).
+ Starting with version 1.22.0-preview, the fourth node *releaselevel* in
+ *implementation.version* is either an empty string or ``"preview"``.
+
.. admonition:: Difference to CPython
:class: attention