Skip to content

Commit 6d3ae56

Browse files
committed
docs: Add CPy diff note for print_exception; embellish sys.platform.
1 parent 2a3e2b9 commit 6d3ae56

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docs/library/sys.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Functions
1717
Print exception with a traceback to a file-like object ``file`` (or
1818
``sys.stdout`` by default).
1919

20+
.. admonition:: Difference to CPython
21+
22+
This function appears in the ``traceback`` module in CPython.
23+
2024
Constants
2125
---------
2226

@@ -34,7 +38,9 @@ Constants
3438

3539
.. data:: platform
3640

37-
the platform that Micro Python is running on
41+
The platform that Micro Python is running on. This is "pyboard" on the
42+
pyboard and provides a robust way of determining if a script is running
43+
on the pyboard or not.
3844

3945
.. data:: stderr
4046

0 commit comments

Comments
 (0)