Skip to content

Commit 2bdaa1b

Browse files
Josverldpgeorge
authored andcommitted
docs/library/sys.rst: Document implementation.version.releaselevel.
Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
1 parent 781366e commit 2bdaa1b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/library/sys.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,17 @@ Constants
6969
MicroPython, it has following attributes:
7070

7171
* *name* - string "micropython"
72-
* *version* - tuple (major, minor, micro), e.g. (1, 7, 0)
72+
* *version* - tuple (major, minor, micro, releaselevel), e.g. (1, 22, 0, '')
7373
* *_machine* - string describing the underlying machine
7474
* *_mpy* - supported mpy file-format version (optional attribute)
7575

7676
This object is the recommended way to distinguish MicroPython from other
7777
Python implementations (note that it still may not exist in the very
7878
minimal ports).
7979

80+
Starting with version 1.22.0-preview, the fourth node *releaselevel* in
81+
*implementation.version* is either an empty string or ``"preview"``.
82+
8083
.. admonition:: Difference to CPython
8184
:class: attention
8285

0 commit comments

Comments
 (0)