summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorDamien George <damien@micropython.org>2022-04-26 17:23:29 +1000
committerDamien George <damien@micropython.org>2022-04-28 17:23:03 +1000
commit59c5d4161120db28bc6cbc7653f2e7fdb4a87370 (patch)
treead390dc288c563f00d5ec6a43bb1de6f13ff9da4 /docs/library
parent40047823bcde4ff97b91fdc19d3d5e8f575e4dde (diff)
py/modsys: Rename sys.implementation.mpy to sys.implementation._mpy.
Per CPython docs, non-standard attributes must begin with an underscore. Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/library')
-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 a2d55fecb..1186af613 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)
+ * *_mpy* - supported mpy file-format version (optional attribute)
This object is the recommended way to distinguish MicroPython from other
Python implementations (note that it still may not exist in the very