docs/library/sys.rst: Document implementation.version.releaselevel.

Signed-off-by: Jos Verlinde <jos_verlinde@hotmail.com>
This commit is contained in:
Jos Verlinde 2024-01-11 22:43:41 +01:00 committed by Damien George
parent 781366e476
commit 2bdaa1bede

View File

@ -69,7 +69,7 @@ Constants
MicroPython, it has following attributes: MicroPython, it has following attributes:
* *name* - string "micropython" * *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 * *_machine* - string describing the underlying machine
* *_mpy* - supported mpy file-format version (optional attribute) * *_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 Python implementations (note that it still may not exist in the very
minimal ports). 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 .. admonition:: Difference to CPython
:class: attention :class: attention