File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,19 @@ The following standard Python libraries are built in to MicroPython.
1717For additional libraries, please download them from the `micropython-lib repository
1818<https://github.com/micropython/micropython-lib> `_.
1919
20+ .. only :: port_unix
21+
22+ .. toctree ::
23+ :maxdepth: 1
24+
25+ cmath.rst
26+ gc.rst
27+ math.rst
28+ os.rst
29+ struct.rst
30+ sys.rst
31+ time.rst
32+
2033.. only :: port_pyboard
2134
2235 .. toctree ::
@@ -50,13 +63,15 @@ the philosophy of MicroPython. They provide the core functionality of that
5063module and are intended to be a drop-in replacement for the standard Python
5164library.
5265
53- The modules are available by their u-name, and also by their non-u-name. The
54- non-u-name can be overridden by a file of that name in your package path.
55- For example, ``import json `` will first search for a file ``json.py `` or
56- directory ``json `` and load that package if it is found. If nothing is found,
57- it will fallback to loading the built-in ``ujson `` module.
66+ .. only :: not port_unix
5867
59- .. only :: port_pyboard
68+ The modules are available by their u-name, and also by their non-u-name. The
69+ non-u-name can be overridden by a file of that name in your package path.
70+ For example, ``import json `` will first search for a file ``json.py `` or
71+ directory ``json `` and load that package if it is found. If nothing is found,
72+ it will fallback to loading the built-in ``ujson `` module.
73+
74+ .. only :: port_pyboard or port_unix
6075
6176 .. toctree ::
6277 :maxdepth: 1
You can’t perform that action at this time.
0 commit comments