summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/sys.rst
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-12-19 22:10:38 +0000
committerDamien George <damien.p.george@gmail.com>2014-12-19 22:10:38 +0000
commit6d3ae569cf7115ff3453d89cd37166edea41de24 (patch)
tree0eb4619cb8cfa0cd2b7c6f12abc21d8527833298 /docs/library/sys.rst
parent2a3e2b903394376fcf5722904453febd7472ee25 (diff)
downloadmicropython-6d3ae569cf7115ff3453d89cd37166edea41de24.tar.gz
micropython-6d3ae569cf7115ff3453d89cd37166edea41de24.zip
docs: Add CPy diff note for print_exception; embellish sys.platform.
Diffstat (limited to 'docs/library/sys.rst')
-rw-r--r--docs/library/sys.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/library/sys.rst b/docs/library/sys.rst
index f5951f8116..fa88a0401b 100644
--- a/docs/library/sys.rst
+++ b/docs/library/sys.rst
@@ -17,6 +17,10 @@ Functions
Print exception with a traceback to a file-like object ``file`` (or
``sys.stdout`` by default).
+ .. admonition:: Difference to CPython
+
+ This function appears in the ``traceback`` module in CPython.
+
Constants
---------
@@ -34,7 +38,9 @@ Constants
.. data:: platform
- the platform that Micro Python is running on
+ The platform that Micro Python is running on. This is "pyboard" on the
+ pyboard and provides a robust way of determining if a script is running
+ on the pyboard or not.
.. data:: stderr