summaryrefslogtreecommitdiff
path: root/docs/library/sys.rst
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-04-26 17:28:39 +1000
committerDamien George <damien@micropython.org>2022-04-28 17:23:03 +1000
commit402df833fe6da5233c83c58421e81493cda54f67 (patch)
treec56176da71b30711764decc5068fdb8ea9376c4d /docs/library/sys.rst
parent59c5d4161120db28bc6cbc7653f2e7fdb4a87370 (diff)
py/modsys: Introduce sys.implementation._machine constant.
This contains a string useful for identifying the underlying machine. This string is kept consistent with the second part of the REPL banner via the new config option MICROPY_BANNER_MACHINE. This makes os.uname() more or less redundant, as all the information in os.uname() is now available in the sys module. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/library/sys.rst')
-rw-r--r--docs/library/sys.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/library/sys.rst b/docs/library/sys.rst
index 1186af613..3efdce964 100644
--- a/docs/library/sys.rst
+++ b/docs/library/sys.rst
@@ -70,6 +70,7 @@ Constants
* *name* - string "micropython"
* *version* - tuple (major, minor, micro), e.g. (1, 7, 0)
+ * *_machine* - string describing the underlying machine
* *_mpy* - supported mpy file-format version (optional attribute)
This object is the recommended way to distinguish MicroPython from other