|
1 | 1 | :mod:`sys` -- system specific functions |
2 | 2 | ======================================= |
3 | 3 |
|
4 | | -.. include:: ../templates/unsupported_in_circuitpython.inc |
5 | | - |
6 | 4 | .. module:: sys |
7 | 5 | :synopsis: system specific functions |
8 | 6 |
|
@@ -45,26 +43,26 @@ Constants |
45 | 43 | .. data:: implementation |
46 | 44 |
|
47 | 45 | Object with information about the current Python implementation. For |
48 | | - MicroPython, it has following attributes: |
| 46 | + CircuitPython, it has following attributes: |
49 | 47 |
|
50 | | - * *name* - string "micropython" |
| 48 | + * *name* - string "circuitpython" |
51 | 49 | * *version* - tuple (major, minor, micro), e.g. (1, 7, 0) |
52 | 50 |
|
53 | | - This object is the recommended way to distinguish MicroPython from other |
| 51 | + This object is the recommended way to distinguish CircuitPython from other |
54 | 52 | Python implementations (note that it still may not exist in the very |
55 | 53 | minimal ports). |
56 | 54 |
|
57 | 55 | .. admonition:: Difference to CPython |
58 | 56 | :class: attention |
59 | 57 |
|
60 | 58 | CPython mandates more attributes for this object, but the actual useful |
61 | | - bare minimum is implemented in MicroPython. |
| 59 | + bare minimum is implemented in CircuitPython. |
62 | 60 |
|
63 | 61 | .. data:: maxsize |
64 | 62 |
|
65 | 63 | Maximum value which a native integer type can hold on the current platform, |
66 | | - or maximum value representable by MicroPython integer type, if it's smaller |
67 | | - than platform max value (that is the case for MicroPython ports without |
| 64 | + or maximum value representable by CircuitPython integer type, if it's smaller |
| 65 | + than platform max value (that is the case for CircuitPython ports without |
68 | 66 | long int support). |
69 | 67 |
|
70 | 68 | This attribute is useful for detecting "bitness" of a platform (32-bit vs |
@@ -96,10 +94,10 @@ Constants |
96 | 94 |
|
97 | 95 | .. data:: platform |
98 | 96 |
|
99 | | - The platform that MicroPython is running on. For OS/RTOS ports, this is |
| 97 | + The platform that CircuitPython is running on. For OS/RTOS ports, this is |
100 | 98 | usually an identifier of the OS, e.g. ``"linux"``. For baremetal ports it |
101 | | - is an identifier of a board, e.g. ``"pyboard"`` for the original MicroPython |
102 | | - reference board. It thus can be used to distinguish one board from another. |
| 99 | + is an identifier of the chip on a board, e.g. ``"MicroChip SAMD51"``. |
| 100 | + It thus can be used to distinguish one board from another. |
103 | 101 | If you need to check whether your program runs on MicroPython (vs other |
104 | 102 | Python implementation), use `sys.implementation` instead. |
105 | 103 |
|
|
0 commit comments